rusticl/memory: do not verify pitch for IMAGE1D_BUFFER
authorKarol Herbst <git@karolherbst.de>
Fri, 1 Sep 2023 10:49:59 +0000 (12:49 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Sep 2023 20:06:30 +0000 (20:06 +0000)
commit526380261821cf820d70963ba07f61f46436ba9e
treee0004c325c0ae6c9532b491f61311d7385a88447
parenta8c7a2fb69920a3de49076cb6fb9f75107d79de5
rusticl/memory: do not verify pitch for IMAGE1D_BUFFER

Devices might report an image_pitch_alignment of 0 leading to a division
by 0 trap.

Fixes: 06daa03c5cd ("rusticl: Implement spec for cl_khr_image2d_from_buffer")
Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24993>
src/gallium/frontends/rusticl/api/memory.rs