i965: Enable predicate support on gen >= 8.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Jan 2017 18:33:53 +0000 (10:33 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jan 2017 05:44:59 +0000 (21:44 -0800)
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 <rafael.antognolli@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_screen.c

index c79268f71b30f7dc0bd6818cda7fdc81e2911071..5fcb5c6fd7fbcf9b97b919622058d251e52a802d 100644 (file)
@@ -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