summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-01-08 10:37:27 +1100
committerTimothy Arceri <[email protected]>2018-01-30 09:08:47 +1100
commit5b8de4bdffa1f0caed55a7a3f615dae9f625c53e (patch)
treea7179d1ff117ee25bf0888c5309e579ee42b278a /src/amd/vulkan
parentf63e05ae9ea0be38a8fb2dd0ae8f391b8699e757 (diff)
nir: add vs_inputs_dual_locations compiler option
Allows nir drivers to either use a single or dual locations for vs double inputs. i965 uses dual locations for both OpenGL and Vulkan drivers, for now gallium OpenGL drivers only use a single location. The following patch will also make use of this option when calling nir_shader_gather_info(). Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 620effe50e6..af094e6220f 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -67,6 +67,7 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_ffma = true,
+ .vs_inputs_dual_locations = true,
.max_unroll_iterations = 32
};