diff --git a/src/compiler/nir/nir_opt_offsets.c b/src/compiler/nir/nir_opt_offsets.c index 7b7a3832d70..90f889d00ff 100644 --- a/src/compiler/nir/nir_opt_offsets.c +++ b/src/compiler/nir/nir_opt_offsets.c @@ -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; }