From 0d8ee4ed2324531b4cc02a2a7a299e9afa959bf9 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 11 Sep 2024 14:08:21 +0300 Subject: [PATCH] brw: use default builder for urb handle adjustment Be consistent with lowering that happens after, so that it gets a full vector register and can stride into it. Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Reviewed-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/brw/brw_from_nir.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/compiler/brw/brw_from_nir.cpp b/src/intel/compiler/brw/brw_from_nir.cpp index d85da501a0d..a77d197b6bc 100644 --- a/src/intel/compiler/brw/brw_from_nir.cpp +++ b/src/intel/compiler/brw/brw_from_nir.cpp @@ -5163,9 +5163,8 @@ adjust_handle_and_offset(const brw_builder &bld, unsigned adjustment = (urb_global_offset >> 11) << 11; if (adjustment) { - brw_builder ubld8 = bld.group(8, 0).exec_all(); /* Allocate new register to not overwrite the shared URB handle. */ - urb_handle = ubld8.ADD(urb_handle, brw_imm_ud(adjustment)); + urb_handle = bld.ADD(urb_handle, brw_imm_ud(adjustment)); urb_global_offset -= adjustment; } }