mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
pan/mdg: Prefer type over regmode for schedule constraints
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5443>
This commit is contained in:
parent
5cf5d3cc2d
commit
7ae2110e61
1 changed files with 2 additions and 2 deletions
|
|
@ -198,12 +198,12 @@ mir_is_scalar(midgard_instruction *ains)
|
|||
|
||||
/* Otherwise, check mode hazards */
|
||||
bool could_scalar = true;
|
||||
unsigned szd = nir_alu_type_get_type_size(ains->dest_type);
|
||||
unsigned sz0 = nir_alu_type_get_type_size(ains->src_types[0]);
|
||||
unsigned sz1 = nir_alu_type_get_type_size(ains->src_types[1]);
|
||||
|
||||
/* Only 16/32-bit can run on a scalar unit */
|
||||
could_scalar &= ains->alu.reg_mode != midgard_reg_mode_8;
|
||||
could_scalar &= ains->alu.reg_mode != midgard_reg_mode_64;
|
||||
could_scalar &= (szd == 16) || (szd == 32);
|
||||
|
||||
if (ains->src[0] != ~0)
|
||||
could_scalar &= (sz0 == 16) || (sz0 == 32);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue