r600: Add support for TGSI_OPCODE_ATOMIMIN and IMAX

With NTT these opcodes are now emitted and need to be handled.

Fixes: a4840e15ab
   r600: Use nir-to-tgsi instead of TGSI when the NIR debug opt is disabled.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16130>
This commit is contained in:
Gert Wollny 2022-04-25 08:41:47 +02:00 committed by Marge Bot
parent a8430c43a7
commit 4f3736595f
2 changed files with 4 additions and 2 deletions

View File

@ -874,8 +874,6 @@ spec@arb_sample_shading@samplemask 8@noms mask_in_one,Fail
# "find_hw_atomic_counter: Assertion `0' failed."
spec@arb_shader_atomic_counter_ops@execution@atomic-counter-array-out-of-bounds-access,Crash
spec@arb_shader_atomic_counter_ops@execution@all_touch_test,Fail
spec@arb_shader_image_load_store@host-mem-barrier,Fail
spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/64x64,Fail
spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/16x16,Fail

View File

@ -9393,6 +9393,10 @@ static int get_gds_op(int opcode)
return FETCH_OP_GDS_MIN_UINT_RET;
case TGSI_OPCODE_ATOMUMAX:
return FETCH_OP_GDS_MAX_UINT_RET;
case TGSI_OPCODE_ATOMIMIN:
return FETCH_OP_GDS_MIN_INT_RET;
case TGSI_OPCODE_ATOMIMAX:
return FETCH_OP_GDS_MAX_INT_RET;
case TGSI_OPCODE_ATOMXCHG:
return FETCH_OP_GDS_XCHG_RET;
case TGSI_OPCODE_ATOMCAS: