i965: two-argument instructions can only use 32-bit immediates
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
committed by
Samuel Iglesias Gonsálvez
parent
3d10adf603
commit
3210870b34
@@ -501,6 +501,8 @@ brw_set_src1(struct brw_codegen *p, brw_inst *inst, struct brw_reg reg)
|
||||
assert(brw_inst_src0_reg_file(devinfo, inst) != BRW_IMMEDIATE_VALUE);
|
||||
|
||||
if (reg.file == BRW_IMMEDIATE_VALUE) {
|
||||
/* two-argument instructions can only use 32-bit immediates */
|
||||
assert(type_sz(reg.type) < 8);
|
||||
brw_inst_set_imm_ud(devinfo, inst, reg.ud);
|
||||
} else {
|
||||
/* This is a hardware restriction, which may or may not be lifted
|
||||
|
||||
Reference in New Issue
Block a user