From d2b266187d0a712234d0e65196cd1152be4708ef Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 20 Nov 2024 18:47:23 -0800 Subject: [PATCH] brw: Use resize_sources several more places Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_fs_opt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_fs_opt.cpp b/src/intel/compiler/brw_fs_opt.cpp index d7221c00be0..3ec97916e26 100644 --- a/src/intel/compiler/brw_fs_opt.cpp +++ b/src/intel/compiler/brw_fs_opt.cpp @@ -455,8 +455,8 @@ brw_fs_opt_eliminate_find_live_channel(fs_visitor &s) if (depth == 0) { inst->opcode = BRW_OPCODE_MOV; inst->src[0] = brw_imm_ud(0u); - inst->sources = 1; inst->force_writemask_all = true; + inst->resize_sources(1); progress = true; /* emit_uniformize() frequently emits FIND_LIVE_CHANNEL paired @@ -475,8 +475,8 @@ brw_fs_opt_eliminate_find_live_channel(fs_visitor &s) bcast->opcode = BRW_OPCODE_MOV; if (!is_uniform(bcast->src[0])) bcast->src[0] = component(bcast->src[0], 0); - bcast->sources = 1; bcast->force_writemask_all = true; + bcast->resize_sources(1); } } break;