Module: Mesa Branch: main Commit: 2d6240ab146ba09bfcbf85102c09538ab92358cc URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d6240ab146ba09bfcbf85102c09538ab92358cc
Author: Caio Oliveira <[email protected]> Date: Mon Nov 20 23:07:58 2023 -0800 intel/compiler: Don't use fs_visitor::bld in fs_reg_alloc Just set up the builder without relying on the pre-existing one. Moves one step close to remove bld from fs_visitor. Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26301> --- src/intel/compiler/brw_fs_reg_allocate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs_reg_allocate.cpp b/src/intel/compiler/brw_fs_reg_allocate.cpp index eb8c3607058..488606940b8 100644 --- a/src/intel/compiler/brw_fs_reg_allocate.cpp +++ b/src/intel/compiler/brw_fs_reg_allocate.cpp @@ -1172,7 +1172,7 @@ fs_reg_alloc::spill_reg(unsigned spill_reg) /* We will allocate a register on the fly */ } else if (devinfo->ver >= 9) { this->scratch_header = alloc_scratch_header(); - fs_builder ubld = fs->bld.exec_all().group(8, 0).at( + fs_builder ubld = fs_builder(fs, 8).exec_all().at( fs->cfg->first_block(), fs->cfg->first_block()->start()); fs_inst *inst = ubld.emit(SHADER_OPCODE_SCRATCH_HEADER,
