mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
ff44f4d278
commit
c317778c67
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue