mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix slice pitch for 1D array images on image_from_buffer_read_positive kernel_read_write images subtest (#1654)
This commit is contained in:
@@ -940,8 +940,11 @@ int image_from_buffer_read_positive(cl_device_id device, cl_context context,
|
||||
|
||||
const size_t row_pitch =
|
||||
aligned_size(TEST_IMAGE_SIZE * element_size, row_pitch_alignment);
|
||||
const size_t slice_pitch =
|
||||
aligned_size(row_pitch * TEST_IMAGE_SIZE, slice_pitch_alignment);
|
||||
const size_t slice_pitch = aligned_size(
|
||||
row_pitch
|
||||
* (imageType == CL_MEM_OBJECT_IMAGE1D_ARRAY ? 1
|
||||
: TEST_IMAGE_SIZE),
|
||||
slice_pitch_alignment);
|
||||
|
||||
const size_t buffer_size = slice_pitch * TEST_IMAGE_SIZE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user