r600/sb: handle scratch mem reads on r600
authorDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 04:17:46 +0000 (14:17 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 8 Feb 2018 23:53:21 +0000 (09:53 +1000)
commit22fc5eff803d14e99e9f86db223ceedcef1b9108
treeffa5a056dae1028c400573ebfdf616c866441c9e
parentcd34deb585669ffe1d520b07c629316f2ac22074
r600/sb: handle scratch mem reads on r600

On r600 we use the scratch mem with read/read_ind, in that case
sb should track the rw_gpr as a dst instead of a src.

This stops the whole shader being optimised out.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_finalize.cpp
src/gallium/drivers/r600/sb/sb_bc_parser.cpp