pan/midgard: Use generic constant packing for 8/64-bit

Eventually, we will want to combine constants across types, but for now
let's not break the world.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-11-05 09:06:41 -05:00
parent 4c182a6d11
commit ea232c7cfd
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ mir_adjust_constants(midgard_instruction *ins,
if (!ins->has_constants)
return true;
if (ins->alu.reg_mode == midgard_reg_mode_16) {
if (ins->alu.reg_mode != midgard_reg_mode_32) {
/* TODO: 16-bit constant combining */
if (pred->constant_count)
return false;