intel/brw: Remove redundant condition in components_read()

DATA1 will be handled by the case reached in the fallthrough.

Signed-off-by: liuqiang <liuqiang@kylinos.cn>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31782>
This commit is contained in:
liuqiang 2024-10-22 15:24:55 +08:00 committed by Marge Bot
parent ff44f4d278
commit c317778c67

View file

@ -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: