Skip to content

fix(images/kernel_read_write): align mem flags between format query a…#2682

Open
Lurie97 wants to merge 1 commit into
KhronosGroup:mainfrom
Lurie97:fix_kernel_read_write
Open

fix(images/kernel_read_write): align mem flags between format query a…#2682
Lurie97 wants to merge 1 commit into
KhronosGroup:mainfrom
Lurie97:fix_kernel_read_write

Conversation

@Lurie97
Copy link
Copy Markdown

@Lurie97 Lurie97 commented May 6, 2026

…nd image creation

The format query in test_loops.cpp uses CL_MEM_WRITE_ONLY, but test_write_*.cpp creates images with both CL_MEM_WRITE_ONLY and CL_MEM_READ_WRITE flags. This causes test failures for formats that are only supported with WRITE_ONLY flag (e.g., CL_RGB + CL_SIGNED_INT8).

Solution:

  • Change write_only_mem_flag_types array from 2 elements to 1 element
  • Only test CL_MEM_WRITE_ONLY flag for kWriteTests
  • CL_MEM_READ_WRITE is already covered by kReadWriteTests which uses read_write kernel and queries formats with CL_MEM_KERNEL_READ_AND_WRITE

@Lurie97 Lurie97 force-pushed the fix_kernel_read_write branch from 3cdf771 to e8d9acc Compare May 6, 2026 07:04
…nd image creation

The format query in test_loops.cpp uses CL_MEM_WRITE_ONLY, but
test_write_*.cpp creates images with both CL_MEM_WRITE_ONLY and
CL_MEM_READ_WRITE flags. This causes test failures for formats
that are only supported with WRITE_ONLY flag (e.g., CL_RGB +
CL_SIGNED_INT8).

Solution:
- Change write_only_mem_flag_types array from 2 elements to 1 element
- Only test CL_MEM_WRITE_ONLY flag for kWriteTests
- CL_MEM_READ_WRITE is already covered by kReadWriteTests which uses
  read_write kernel and queries formats with CL_MEM_KERNEL_READ_AND_WRITE

Signed-off-by: jiajia Qian <jiajia.qian@nxp.com>
@Lurie97
Copy link
Copy Markdown
Author

Lurie97 commented May 8, 2026

Hi @franz @karolherbst, could you please help review this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant