clover/images: Add array_size to implement CL_IMAGE_ARRAY_SIZE
authorEdward O'Callaghan <funfunctor@folklore1984.net>
Sat, 26 Nov 2016 06:18:58 +0000 (17:18 +1100)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Oct 2021 02:22:21 +0000 (12:22 +1000)
commit3298ee546e85f80d63ccee9f81a92b0f075232af
treec129ed2337c32da438c0e3aa1c16a4ad0e8fccc2
parent029f22e430f74a5d26eb7e69a08fe703ccc4e77a
clover/images: Add array_size to implement CL_IMAGE_ARRAY_SIZE

This will be needed to implement array immages.

v2 (Karol Herbst): Extracted from other commit
                   Fix clEnqueueMapImage for arrays
                   Add some basic support for image arrays

Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13401>
src/gallium/frontends/clover/api/memory.cpp
src/gallium/frontends/clover/api/transfer.cpp
src/gallium/frontends/clover/core/memory.cpp
src/gallium/frontends/clover/core/memory.hpp
src/gallium/frontends/clover/core/resource.cpp