r600/sfn: add read instruction for unused but required LDS op results
authorGert Wollny <gert.wollny@collabora.com>
Wed, 31 May 2023 15:44:16 +0000 (17:44 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 08:32:16 +0000 (08:32 +0000)
commit976d6de232aec1874b634b7dda3b2c90d607e13b
tree3be2acc2d34fded9a66c27f4d80865e0385db68d
parent9396ba3be10e2d546f7ae9962d62e9031dd67934
r600/sfn: add read instruction for unused but required LDS op results

DS_XCHG_RET and LDS_CMP_XCHG_RET don't have a version that doesn't return
a value in the LDS red queue. so we have to read the value from the queue
and discard it.

Fixes: 79ca456b (r600/sfn: rewrite NIR backend)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23518>
src/gallium/drivers/r600/sfn/sfn_instr_lds.cpp
src/gallium/drivers/r600/sfn/sfn_shader.cpp