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

Commit 276e19df authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Fix the maximum number of allowable memory types



The memtype field in the memory flags allows for 3 bits for
the memory type.  Even though we only define 4 types now we
need to account for the other 4 in case they start getting
used.

Change-Id: Ic0dedbadeb644614935f48145ebf5e73d3c603f3
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 46151f54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ enum kgsl_user_mem_type {
	KGSL_USER_MEM_TYPE_ASHMEM	= 0x00000001,
	KGSL_USER_MEM_TYPE_ADDR		= 0x00000002,
	KGSL_USER_MEM_TYPE_ION		= 0x00000003,
	KGSL_USER_MEM_TYPE_MAX		= 0x00000004,
	KGSL_USER_MEM_TYPE_MAX		= 0x00000007,
};
#define KGSL_MEMFLAGS_USERMEM_MASK 0x000000e0
#define KGSL_MEMFLAGS_USERMEM_SHIFT 5