summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorRafael Antognolli <[email protected]>2017-01-05 10:33:53 -0800
committerKenneth Graunke <[email protected]>2017-01-11 21:44:59 -0800
commitea7e4b1e51bf571f60691c95ea6d336201fa6926 (patch)
tree05a51199aa555f27bd6330808539cbc431d92db5 /src/mesa
parent0252ba26c545a9752b158470cb66741df0f222ce (diff)
i965: Enable predicate support on gen >= 8.
Predication needs cmd parser only on gen7. For newer platforms, it should be available without it. v2 (Ken): rebase on recent changes. Signed-off-by: Rafael Antognolli <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index c79268f71b3..5fcb5c6fd7f 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -1773,7 +1773,7 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen)
screen->cmd_parser_version = 0;
}
- if (screen->cmd_parser_version >= 2)
+ if (screen->devinfo.gen >= 8 || screen->cmd_parser_version >= 2)
screen->kernel_features |= KERNEL_ALLOWS_PREDICATE_WRITES;
/* Haswell requires command parser version 4 in order to have L3