diff options
author | Jason Ekstrand <[email protected]> | 2016-01-20 11:16:44 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-20 11:16:44 -0800 |
commit | e45748badea913b90a51744ee1d8a509a3ae8165 (patch) | |
tree | 9648f19b4d090fd2def116deccf589f53b9a0810 /src/vulkan/anv_device.c | |
parent | 34f9a5f3018b40476d1a126f02842914abc0f1dd (diff) |
anv/device: Default to scalar GS on BDW+
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 9248f912c69..949cfe97772 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -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); |