nir: add vs_inputs_dual_locations compiler option
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 7 Jan 2018 23:37:27 +0000 (10:37 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 29 Jan 2018 22:08:47 +0000 (09:08 +1100)
commit5b8de4bdffa1f0caed55a7a3f615dae9f625c53e
treea7179d1ff117ee25bf0888c5309e579ee42b278a
parentf63e05ae9ea0be38a8fb2dd0ae8f391b8699e757
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 <kherbst@redhat.com>
src/amd/vulkan/radv_shader.c
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.h
src/intel/compiler/brw_compiler.c