mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 02:50:16 +01:00
i965/fs: Assert that IF instruction with embedded compare has legal exec_size.
We shouldn't encounter these right now but if we did it wouldn't be possible for the SIMD lowering pass to split it into multiple instructions because of its side effects on control flow, so just assert in order to kill the program. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
98c8bef01c
commit
122e031548
1 changed files with 4 additions and 0 deletions
|
|
@ -4788,6 +4788,10 @@ get_lowered_simd_width(const struct brw_device_info *devinfo,
|
|||
return MIN2(devinfo->is_haswell ? 8 : ~0u,
|
||||
get_fpu_lowered_simd_width(devinfo, inst));
|
||||
|
||||
case BRW_OPCODE_IF:
|
||||
assert(inst->src[0].file == BAD_FILE || inst->exec_size <= 16);
|
||||
return inst->exec_size;
|
||||
|
||||
case SHADER_OPCODE_RCP:
|
||||
case SHADER_OPCODE_RSQ:
|
||||
case SHADER_OPCODE_SQRT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue