rusticl/mem: fix image OOB checks
authorKarol Herbst <kherbst@redhat.com>
Tue, 27 Sep 2022 22:49:00 +0000 (00:49 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 1 Oct 2022 03:43:10 +0000 (03:43 +0000)
commitdf84c89d969e25e2d3c34956b528434d14d3626e
treeb04093f4be11686abe3455298357f288644768f5
parent1af804d55482d6a245dfa9eaeba4a8722d7930e9
rusticl/mem: fix image OOB checks

The CL API puts the array layer on the height, where gallium puts it on
the depth. This is taken into account everywhere else, except for API
validation.

Fixes: 8b9a5adf8be ("rusticl/mem: return errors for OOB accesses")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18852>
src/gallium/frontends/rusticl/api/memory.rs
src/gallium/frontends/rusticl/core/memory.rs