anv/device: Default to scalar GS on BDW+
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 19:16:44 +0000 (11:16 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 Jan 2016 19:16:44 +0000 (11:16 -0800)
src/vulkan/anv_device.c

index 9248f912c69bda9ec937bd871f46b9e0ebf3ddd7..949cfe9777290450d32823627ab0ca529c2a3993 100644 (file)
@@ -30,6 +30,7 @@
 #include "anv_private.h"
 #include "mesa/main/git_sha1.h"
 #include "util/strtod.h"
+#include "util/debug.h"
 
 #include "gen7_pack.h"
 
@@ -137,6 +138,10 @@ anv_physical_device_init(struct anv_physical_device *device,
    device->compiler->shader_debug_log = compiler_debug_log;
    device->compiler->shader_perf_log = compiler_perf_log;
 
+   /* Default to use scalar GS on BDW+ */
+   device->compiler->scalar_stage[MESA_SHADER_GEOMETRY] =
+      device->info->gen >= 8 && env_var_as_boolean("INTEL_SCALAR_GS", true);
+
    /* XXX: Actually detect bit6 swizzling */
    isl_device_init(&device->isl_dev, device->info, swizzled);