mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
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:
parent
315ee5faec
commit
f89e735719
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue