From 0c1bb9269085ad1904fd0bbaf4dc1a16f80d1b7d Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Wed, 10 Apr 2024 10:43:38 +0200 Subject: [PATCH] nir/opt_offsets: add load/store_ssbo_ir3 Signed-off-by: Job Noorman Reviewed-by: Connor Abbott Part-of: --- src/compiler/nir/nir_opt_offsets.c | 3 +++ 1 file changed, 3 insertions(+) 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; }