freedreno/ir3: Use LDIB for coherent image loads on a5xx.
authorEmma Anholt <emma@anholt.net>
Thu, 2 Sep 2021 16:23:15 +0000 (09:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Sep 2021 18:17:07 +0000 (18:17 +0000)
commit1cc8523c5cc5730b7b38bf25424b12b3220d151e
tree29003c8ae934b1ab820f39f1b050ade90dc02ef3
parent2b6729883ac982e8ddcd63f67557717b45bb6aa8
freedreno/ir3: Use LDIB for coherent image loads on a5xx.

If the coherent flag is present, then we need to not have an incoherent
cache between us and previous stores to the image that were also decorated
as coherent.  isam apparently (unsurprisingly) goes through a texture
cache.  Use ldib instead, so that we don't get the wrong result.

We would need a similar fix for a4xx, but that uses ldgb and I don't
have hardware to test on.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12704>
src/freedreno/ci/deqp-freedreno-a530-fails.txt
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_a4xx.c
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_nir.c