intel/compiler: Check for unsupported register sizes.
Make sure we don't emit 64 bit types if the hardware doesn't support them. Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com> Suggested-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -204,6 +204,9 @@ brw_reg_type_to_hw_type(const struct gen_device_info *devinfo,
|
|||||||
table = gen4_hw_type;
|
table = gen4_hw_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(devinfo->has_64bit_types || brw_reg_type_to_size(type) < 8 ||
|
||||||
|
type == BRW_REGISTER_TYPE_NF);
|
||||||
|
|
||||||
if (file == BRW_IMMEDIATE_VALUE) {
|
if (file == BRW_IMMEDIATE_VALUE) {
|
||||||
assert(table[type].imm_type != (enum hw_imm_type)INVALID);
|
assert(table[type].imm_type != (enum hw_imm_type)INVALID);
|
||||||
return table[type].imm_type;
|
return table[type].imm_type;
|
||||||
|
Reference in New Issue
Block a user