Skip to content

Commit 0aea86d

Browse files
Accept CL_MEM_FORCE_LINEAR_STORAGE_INTEL token
Change-Id: I3574854c133cdab427fd0389ecc464c4e97c7328 Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent 5685b28 commit 0aea86d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

runtime/mem_obj/mem_obj_helper_common.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const uint64_t MemObjHelper::validFlagsForBuffer = commonFlags | CL_MEM_ALLOW_UN
9999

100100
const uint64_t MemObjHelper::validFlagsForBufferIntel = commonFlagsIntel | CL_MEM_ALLOW_UNRESTRICTED_SIZE_INTEL;
101101

102-
const uint64_t MemObjHelper::validFlagsForImage = commonFlags | CL_MEM_NO_ACCESS_INTEL | CL_MEM_ACCESS_FLAGS_UNRESTRICTED_INTEL;
102+
const uint64_t MemObjHelper::validFlagsForImage = commonFlags | CL_MEM_NO_ACCESS_INTEL | CL_MEM_ACCESS_FLAGS_UNRESTRICTED_INTEL | CL_MEM_FORCE_LINEAR_STORAGE_INTEL;
103103

104104
const uint64_t MemObjHelper::validFlagsForImageIntel = commonFlagsIntel;
105105

unit_tests/api/cl_create_image_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ static cl_mem_flags validFlags[] = {
409409
CL_MEM_HOST_READ_ONLY,
410410
CL_MEM_HOST_NO_ACCESS,
411411
CL_MEM_NO_ACCESS_INTEL,
412+
CL_MEM_FORCE_LINEAR_STORAGE_INTEL,
412413
CL_MEM_ACCESS_FLAGS_UNRESTRICTED_INTEL,
413414
};
414415

0 commit comments

Comments
 (0)