From 05ff4bb6616ce13d09d02465140ad276110c71a7 Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Mon, 7 Mar 2011 17:45:41 -0800 Subject: [PATCH] copybit_c2d: Set the kgsl memory type as pmem for buffers with the PRIV_FLAGS_USES_PMEM_ADSP flag Gralloc buffers which have the PRIV_FLAGS_USES_PMEM_ADSP flag are allocated from a pmem region. Set the kgsl memory type to PMEM to reflect this change. Change-Id: Id5b84277ddec5cc9550aa97d2789df4d1bc2b2b5 --- libcopybit/copybit_c2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcopybit/copybit_c2d.cpp b/libcopybit/copybit_c2d.cpp index 4159dbf..8f99196 100644 --- a/libcopybit/copybit_c2d.cpp +++ b/libcopybit/copybit_c2d.cpp @@ -207,7 +207,7 @@ static uint32 c2d_get_gpuaddr(int device_fd, struct private_handle_t *handle) param.offset = handle->offset; param.hostptr = handle->base; - if (handle->flags & private_handle_t::PRIV_FLAGS_USES_PMEM) + if (handle->flags & (private_handle_t::PRIV_FLAGS_USES_PMEM|private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP)) param.memtype = KGSL_USER_MEM_TYPE_PMEM; else param.memtype = KGSL_USER_MEM_TYPE_ASHMEM;