mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Rebase of my previous clGetImageRequirementsInfoEXT flag=0 fix PR: PR1632 Pass 'flag' variable through to clGetImageRequirementsInfoEXT: Almost all of the image_from_buffer cl_ext_image_requirements_info tests pass '0' as the 'flags' to clGetImageRequirementsInfoEXT. Passing '0' as the flags is valid according to the spec, but since the tests are calling clGetImageRequirementsInfoEXT in a loop over a list of flags it doesn't seem intended that all the tests pass '0'. Fixed CL_MEM_KERNEL_READ_AND_WRITE flag override: The mem_flags override for CL_MEM_KERNEL_READ_AND_WRITE was incorrectly affecting subsequent iterations of the image_format loop. Fixed by using a separate variable inside the loop.