ir3: Don't use the format to get the image type
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 21 Sep 2020 11:47:48 +0000 (13:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Sep 2020 14:54:40 +0000 (14:54 +0000)
commit37054a3ef5d2d177eac90e24852742a04afd3dd4
tree6d956765d6e090c4d478cfc35e2b36addb1ccdda
parent6ebc20fd884153db7cb9390692190664d993b640
ir3: Don't use the format to get the image type

Use the sampler type instead, which was recently plumbed through core
NIR, for load/store and the right type for atomics. This removes the
last hard dependency on the image format.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6800>
src/freedreno/ir3/ir3_image.c