Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 20ef1f47 authored by Jeremy Gebben's avatar Jeremy Gebben
Browse files

msm: kgsl: set usermem type in the memdesc flags



It is sometimes helpful for userspace to know if
a buffer is allocated memory or mapped in from
another driver. Add  KGSL_MEMFLAGS_USERMEM_ values
so this information can be stored into the flags,
which are visible to userspace after the allocation
and map ioctls return, or via IOCTL_KGSL_GPUMEM_GET_INFO.

Because enum kgsl_user_mem_type only accounted for
mapped memory types, the flags value adds 1 to each
enum so that 0 can mean allocated (not mapped)
memory.

Change-Id: I1af71ca5527adb4bae04cfe003afa7d4db1d0a21
Signed-off-by: default avatarJeremy Gebben <jgebben@codeaurora.org>
parent d3dde527
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment