ir3: allow imm src0 (IBO) on bindless atomics

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39932>
This commit is contained in:
Job Noorman 2026-04-11 14:02:11 +02:00 committed by Marge Bot
parent b8437e30bf
commit bd69573c34

View file

@ -1884,11 +1884,13 @@ ir3_valid_flags(struct ir3_instruction *instr, unsigned n, unsigned flags)
/* disallow immediates in anything but the SSBO slot argument for
* cat6 instructions:
*/
if (is_global_a3xx_atomic(instr->opc) && (n != 0))
if ((is_global_a3xx_atomic(instr->opc) ||
is_bindless_atomic(instr->opc)) &&
(n != 0)) {
return false;
}
if (is_local_atomic(instr->opc) || is_global_a6xx_atomic(instr->opc) ||
is_bindless_atomic(instr->opc))
if (is_local_atomic(instr->opc) || is_global_a6xx_atomic(instr->opc))
return false;
if (instr->opc == OPC_STG && (n == 2))