freedreno/ir3: add image/ssbo <-> ibo/tex mapping
authorRob Clark <robdclark@gmail.com>
Tue, 5 Feb 2019 20:33:57 +0000 (15:33 -0500)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Feb 2019 21:27:59 +0000 (16:27 -0500)
commit2e0ea3f09c79c657116cbc9cbc68377e364dfe28
tree5d6f4a3793b79332d6de26140fd1b3d21703b131
parent75f3a5245e54d1be5b75db66ba50d7c2f5dee4fc
freedreno/ir3: add image/ssbo <-> ibo/tex mapping

Images and SSBOs don't map directly to the hw.  They end up being part
texture and part something else.  Starting with a6xx, the hack used for
a5xx to smash the image tex state into hw texture state starting from
MAX counting down won't work, because we start using tex state also for
SSBO read.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_a4xx.c
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_context.c
src/freedreno/ir3/ir3_image.c
src/freedreno/ir3/ir3_image.h
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/a5xx/fd5_image.c
src/gallium/drivers/freedreno/a5xx/fd5_image.h