mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-28 19:20:44 +01:00
i965: Compact acc_wr_control only on Gen6+.
It only exists on Gen6+, and the next patches will add compaction support for the (unused) field in the same location on earlier platforms. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
ee868c46e8
commit
35f3f06c8a
1 changed files with 8 additions and 2 deletions
|
|
@ -1016,7 +1016,10 @@ brw_try_compact_instruction(const struct brw_device_info *devinfo,
|
|||
if (!set_subreg_index(devinfo, &temp, src, is_immediate))
|
||||
return false;
|
||||
|
||||
compact(acc_wr_control);
|
||||
if (devinfo->gen >= 6) {
|
||||
compact(acc_wr_control);
|
||||
}
|
||||
|
||||
compact(cond_modifier);
|
||||
|
||||
if (devinfo->gen <= 6)
|
||||
|
|
@ -1224,7 +1227,10 @@ brw_uncompact_instruction(const struct brw_device_info *devinfo, brw_inst *dst,
|
|||
|
||||
set_uncompacted_subreg(devinfo, dst, src);
|
||||
|
||||
uncompact(acc_wr_control);
|
||||
if (devinfo->gen >= 6) {
|
||||
uncompact(acc_wr_control);
|
||||
}
|
||||
|
||||
uncompact(cond_modifier);
|
||||
|
||||
if (devinfo->gen <= 6)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue