mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
test: correct get_global_id type in printf
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a7ff04e28f
commit
7a661dd2ec
@@ -107,7 +107,7 @@ __kernel void image_read_sampler_oob(__global float4 *dst, image2d_t img, sample
|
||||
int2 coord = {get_global_id(0) + 1, get_global_id(1) + 1};
|
||||
size_t dstOffset = get_global_id(1) * get_image_width(img) + get_global_id(0);
|
||||
dst[dstOffset] = read_imagef(img, sampler, coord);
|
||||
printf(" gid[ %d, %d] %.2f , %.2f , %.2f , %.2f \n", get_global_id(0), get_global_id(1), dst[dstOffset].x, dst[dstOffset].y, dst[dstOffset].z, dst[dstOffset].w );
|
||||
printf(" gid[ %zu, %zu] %.2f , %.2f , %.2f , %.2f \n", get_global_id(0), get_global_id(1), dst[dstOffset].x, dst[dstOffset].y, dst[dstOffset].z, dst[dstOffset].w );
|
||||
}
|
||||
)===";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user