Files
metal2vulkan/crates
Anees Iqbal 283d8d8f50 Tests: an OpenCL-mode kernel's 1D images read their 2D textures under the identity domains
Red first for L61. Every kernel of OpenCL mode that takes a 1D image (image1d_t or
image1d_array_t) is refused when its pipeline is made: Unsupported{IdentityDomains} naming
RuntimeFact::OpenClLineTexture, the fact by which the table domains read a 1D texture bound
there in a variant. Apple's OpenCL binds a 2D texture of height 1 for an image1d_t and a 2D array
of that height for an image1d_array_t, and the M3 Max and the Radeon Pro 5300M read those as the
1D image's row 0. These tests now ask for that answer.

- engine_opencl_mode: __entry_lr (read_imagef of an image1d_t at 2 and of an image1d_array_t at
  (1, 1)) compiles in OpenCL mode and passes L3 on every profile the identity domains derive. It
  states OpenClMode and no OpenClLineTexture, and its images are elements of the sampled float 2D
  and 2D-array classes. On the CPU interpreter, over a 4 x 1 2D texture and a 4 x 1 2D array of two
  layers, it reads texel 2 of the first and texel 1 of the second's layer 1.
- runtime opencl_lines (device cfg, under the validation layer): __entry_ol, with its hidden
  buffers bound as Apple's OpenCL binds them, reads a 4 x 1 2D texture at x and a 2D array at
  (x, 1). It writes their sum to a third 2D texture and the array's texel to o[x]; both are
  checked.
2026-12-02 07:25:18 -08:00
..