From 27c69acb6a34d4a492a7bbd933ff759d2441e8d6 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 22 Aug 2025 15:58:21 +0300 Subject: [PATCH] brw: remove uniform from opt_offsets Those are for push constants, no point in doing that because : - there is no HW constant offsets in push constants (payload delivery), it's just register offset calculation - if we have an dynamic value it's already using MOV_INDIRECT Signed-off-by: Lionel Landwerlin Fixes: e103afe7be ("brw: run the nir_opt_offsets pass and set the maximum offset size") Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_nir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index d83706bbc6f..1be5c2852e1 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1947,7 +1947,6 @@ brw_vectorize_lower_mem_access(nir_shader *nir, .buffer_max = UINT32_MAX, .shared_max = UINT32_MAX, .shared_atomic_max = UINT32_MAX, - .uniform_max = UINT32_MAX, }; OPT(nir_opt_offsets, &offset_options);