From c317778c67ab06d4331de62c75f50c4371e58966 Mon Sep 17 00:00:00 2001 From: liuqiang Date: Tue, 22 Oct 2024 15:24:55 +0800 Subject: [PATCH] intel/brw: Remove redundant condition in components_read() DATA1 will be handled by the case reached in the fallthrough. Signed-off-by: liuqiang Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_inst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_inst.cpp b/src/intel/compiler/brw_inst.cpp index 7b86f05d464..e4ca30e9a78 100644 --- a/src/intel/compiler/brw_inst.cpp +++ b/src/intel/compiler/brw_inst.cpp @@ -481,7 +481,7 @@ brw_inst::components_read(unsigned i) const return 1; case SHADER_OPCODE_MEMORY_LOAD_LOGICAL: - if (i == MEMORY_LOGICAL_DATA0 || i == MEMORY_LOGICAL_DATA0) + if (i == MEMORY_LOGICAL_DATA0) return 0; /* fallthrough */ case SHADER_OPCODE_MEMORY_STORE_LOGICAL: