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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user