summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-10-19 15:01:20 -0700
committerMatt Turner <[email protected]>2015-10-21 10:17:37 -0700
commit35f3f06c8a2e614beac90cf25b9dfff98bb420dc (patch)
tree41afac62337347d942c61fb8d414c0edcb2c3582 /src
parentee868c46e80d5a394e14846552bcb2fd77df419c (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_compact.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c
index facf3cd1b88..b122deca727 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_compact.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c
@@ -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)