From d63cc8ce5d76cb6c09e69b774f8b96e5e1c9275f Mon Sep 17 00:00:00 2001 From: Sergiu Bogdan Popescu <37843379+sergiupopescu22@users.noreply.github.com> Date: Tue, 28 Oct 2025 17:01:42 +0100 Subject: [PATCH] Modified kernel code to correspond to the Image declared format (CL_UNSIGNED_INT8) (#2512) **For mutable_dispatch_image_1d_arguments & mutable_dispatch_image_2d_arguments:** As the images are created using CL_UNSIGNED_INT8, the kernel does not use correct instructions, as they are designed for signed variable. This fix consists of modifying the kernel code to use unsigned instructions and auxiliary variables . --- .../mutable_command_image_arguments.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_image_arguments.cpp b/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_image_arguments.cpp index 6fe31948..e287375b 100644 --- a/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_image_arguments.cpp +++ b/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_image_arguments.cpp @@ -70,9 +70,9 @@ struct MutableDispatchImage1DArguments : public BasicMutableCommandBufferTest { int offset = get_global_id(0); - int4 color = read_imagei( source, sampler, offset ); + uint4 color = read_imageui( source, sampler, offset ); - write_imagei( dest, offset, color ); + write_imageui( dest, offset, color ); })"; cl_int error; @@ -260,9 +260,9 @@ struct MutableDispatchImage2DArguments : public BasicMutableCommandBufferTest int x = get_global_id(0); int y = get_global_id(1); - int4 color = read_imagei( source, sampler, (int2) (x, y) ); + uint4 color = read_imageui( source, sampler, (int2) (x, y) ); - write_imagei( dest, (int2) (x, y), color ); + write_imageui( dest, (int2) (x, y), color ); })"; cl_int error;