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>
This commit is contained in:
@@ -57,6 +57,7 @@ static const struct nir_shader_compiler_options scalar_nir_options = {
|
||||
.lower_unpack_snorm_4x8 = true,
|
||||
.lower_unpack_unorm_2x16 = true,
|
||||
.lower_unpack_unorm_4x8 = true,
|
||||
.vs_inputs_dual_locations = true,
|
||||
.max_unroll_iterations = 32,
|
||||
};
|
||||
|
||||
@@ -78,6 +79,7 @@ static const struct nir_shader_compiler_options vector_nir_options = {
|
||||
.lower_unpack_unorm_2x16 = true,
|
||||
.lower_extract_byte = true,
|
||||
.lower_extract_word = true,
|
||||
.vs_inputs_dual_locations = true,
|
||||
.max_unroll_iterations = 32,
|
||||
};
|
||||
|
||||
@@ -96,6 +98,7 @@ static const struct nir_shader_compiler_options vector_nir_options_gen6 = {
|
||||
.lower_unpack_unorm_2x16 = true,
|
||||
.lower_extract_byte = true,
|
||||
.lower_extract_word = true,
|
||||
.vs_inputs_dual_locations = true,
|
||||
.max_unroll_iterations = 32,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user