From 0146f5029a56989b93465f4ae7c070d37d3be2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Mon, 31 Oct 2022 09:03:44 +0100 Subject: [PATCH] r300: don't skip source rewrite if RC_FILE_NONE in rc_for_all_reads_src MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function is used by rc_variable_change_dst when rewriting variables and even though we don't need to rewrite the index for RC_FILE_NONE, we still need to properly reswizzle. All other users of the function are properly checking for RC_FILE_NONE later. Signed-off-by: Pavel Ondračka Reviewed-by: Filip Gawin Tested-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/radeon_dataflow.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/radeon_dataflow.c b/src/gallium/drivers/r300/compiler/radeon_dataflow.c index 455825a3c9f..ea81dc3e527 100644 --- a/src/gallium/drivers/r300/compiler/radeon_dataflow.c +++ b/src/gallium/drivers/r300/compiler/radeon_dataflow.c @@ -196,9 +196,6 @@ void rc_for_all_reads_src( for(unsigned int src = 0; src < opcode->NumSrcRegs; ++src) { - if (inst->U.I.SrcReg[src].File == RC_FILE_NONE) - continue; - if (inst->U.I.SrcReg[src].File == RC_FILE_PRESUB) { unsigned int i; unsigned int srcp_regs = rc_presubtract_src_reg_count(