From 636450c274cf7b5e1db869ac8ed12c4996d0922b Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 10 Aug 2022 14:45:06 +0100 Subject: [PATCH] aco: allow direct_fetch=true for vec4 VS input loads This seems to be a (mostly harmless) mistake from 369b8cffea2. fossil-db (navi21): Totals from 15 (0.01% of 135636) affected shaders: Instrs: 1992 -> 1999 (+0.35%) Latency: 13557 -> 13567 (+0.07%); split: -0.24%, +0.31% InvThroughput: 4059 -> 4065 (+0.15%); split: -0.20%, +0.34% Copies: 186 -> 193 (+3.76%) fossil-db (polaris10): Totals from 5 (0.00% of 135610) affected shaders: Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 9ace3d86f49..f144403d46f 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -5631,7 +5631,7 @@ visit_load_input(isel_context* ctx, nir_intrinsic_instr* instr) } Temp fetch_dst; - if (channel_start == 0 && fetch_bytes == dst.bytes() && num_channels <= 3) { + if (channel_start == 0 && fetch_bytes == dst.bytes()) { direct_fetch = true; fetch_dst = dst; } else {