clover/formats: pass in cl_mem_flags for better format checking
authorKarol Herbst <kherbst@redhat.com>
Wed, 21 Oct 2020 03:03:27 +0000 (05:03 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Oct 2021 20:55:34 +0000 (06:55 +1000)
commitb4f9b15dd0e7cf1a5fd10f3b9c4ac0a4bfa5c804
tree065114d546d41160bb000e90e5ab04bb2250d717
parentf09e6c1c5fcdfa0e16d09b30cc5deb1a4fedd728
clover/formats: pass in cl_mem_flags for better format checking

This allows us to advertise more formats depending on how the image is
getting used inside a kernel.

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/13424>
src/gallium/frontends/clover/api/memory.cpp
src/gallium/frontends/clover/core/device.hpp
src/gallium/frontends/clover/core/format.cpp
src/gallium/frontends/clover/core/format.hpp