diff options
author | Timothy Arceri <[email protected]> | 2018-01-08 10:37:27 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-01-30 09:08:47 +1100 |
commit | 5b8de4bdffa1f0caed55a7a3f615dae9f625c53e (patch) | |
tree | a7179d1ff117ee25bf0888c5309e579ee42b278a /src/compiler/nir/nir.h | |
parent | f63e05ae9ea0be38a8fb2dd0ae8f391b8699e757 (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/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 41a07b0b48c..4bb96c3c952 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1892,6 +1892,12 @@ typedef struct nir_shader_compiler_options { */ bool use_interpolated_input_intrinsics; + /** + * Do vertex shader double inputs use two locations? The Vulkan spec + * requires two locations to be used, OpenGL allows a single location. + */ + bool vs_inputs_dual_locations; + unsigned max_unroll_iterations; } nir_shader_compiler_options; |