The conformance tests for get_image_width are failing for 1Dbuffer, when the the texel buffer byte size is larger than the image_width * sizeof(texel)
It's returning the buffer_byte_size / sizeof(texel) instead of the image width (the value of cl_image_desc.image_width property when the image was created).
Here's a failing test run (with some extra debugging output; and slightly changing the extra widths... but the problem exists on the existing code)
The conformance tests for get_image_width are failing for 1Dbuffer, when the the texel buffer byte size is larger than the
image_width * sizeof(texel)
It's returning the
buffer_byte_size / sizeof(texel)
instead of the image width (the value ofcl_image_desc.image_width
property when the image was created).Here's a failing test run (with some extra debugging output; and slightly changing the extra widths... but the problem exists on the existing code)
The full log is attached image_methods.txt
The failure also happens with SwiftShader.