We don't want to set compression control on a SIMD16 instruction
operating on words or smaller.
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
break;
case 16:
case 32:
- brw_set_default_compression_control(p, BRW_COMPRESSION_COMPRESSED);
+ if (type_sz(inst->dst.type) < sizeof(float))
+ brw_set_default_compression_control(p, BRW_COMPRESSION_NONE);
+ else
+ brw_set_default_compression_control(p, BRW_COMPRESSION_COMPRESSED);
break;
default:
unreachable("Invalid instruction width");