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
This commit is contained in:
Naomi Luis 2011-03-07 17:45:41 -08:00 committed by Govind Surti
parent ac47ade639
commit 05ff4bb661

View File

@ -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;