nir/opt_offsets: add load/store_ssbo_ir3

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28664>
This commit is contained in:
Job Noorman
2024-04-10 10:43:38 +02:00
committed by Marge Bot
parent 609a56d170
commit 0c1bb92690
+3
View File
@@ -210,7 +210,10 @@ process_instr(nir_builder *b, nir_instr *instr, void *s)
case nir_intrinsic_load_buffer_amd:
return try_fold_load_store(b, intrin, state, 1, state->options->buffer_max);
case nir_intrinsic_store_buffer_amd:
case nir_intrinsic_load_ssbo_ir3:
return try_fold_load_store(b, intrin, state, 2, get_max(state, intrin, state->options->buffer_max));
case nir_intrinsic_store_ssbo_ir3:
return try_fold_load_store(b, intrin, state, 3, get_max(state, intrin, state->options->buffer_max));
default:
return false;
}