mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
intel/fs: UNDEF fixup_nomask_control_flow temp register
Ensure that the register's liveness is not expanded to loops. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21853>
This commit is contained in:
parent
362a07db3a
commit
adb8c30436
1 changed files with 4 additions and 2 deletions
|
|
@ -6445,10 +6445,12 @@ fs_visitor::fixup_nomask_control_flow()
|
|||
*/
|
||||
const bool save_flag = flag_liveout &
|
||||
flag_mask(flag, dispatch_width / 8);
|
||||
const fs_reg tmp = ubld.group(1, 0).vgrf(flag.type);
|
||||
const fs_reg tmp = ubld.group(8, 0).vgrf(flag.type);
|
||||
|
||||
if (save_flag)
|
||||
if (save_flag) {
|
||||
ubld.group(8, 0).UNDEF(tmp);
|
||||
ubld.group(1, 0).MOV(tmp, flag);
|
||||
}
|
||||
|
||||
ubld.emit(FS_OPCODE_LOAD_LIVE_CHANNELS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue