diff options
author | Jason Ekstrand <[email protected]> | 2018-08-31 07:35:17 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-09-06 16:07:50 -0500 |
commit | 44ec31cd75f679b32afb03c3c9c46762e57ce506 (patch) | |
tree | c9ff90ef7289fb26513724d0663fcdb91193f34a /src/compiler/glsl | |
parent | 0909a57b631f2b200a7422907df6302a72930252 (diff) |
nir: Drop the vs_inputs_dual_locations option
It was very inconsistently handled; the only things that made use of it
were glsl_to_nir, glspirv, and nir_gather_info. In particular,
nir_lower_io completely ignored it so anyone using nir_lower_io on
64-bit vertex attributes was going to be in for a shock. Also, as of
the previous commit, it's set by every driver that supports 64-bit
vertex attributes. There's no longer any reason to have it be an option
so let's just delete it.
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index d22f4a58dd4..dc6ffa3599d 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -149,11 +149,8 @@ glsl_to_nir(const struct gl_shader_program *shader_prog, * two locations. For instance, if we have in the IR code a dvec3 attr0 in * location 0 and vec4 attr1 in location 1, in NIR attr0 will use * locations/slots 0 and 1, and attr1 will use location/slot 2 */ - if (shader->info.stage == MESA_SHADER_VERTEX) { - sh->Program->DualSlotInputs = nir_get_dual_slot_attributes(shader); - if (options->vs_inputs_dual_locations) - nir_remap_dual_slot_attributes(shader, sh->Program->DualSlotInputs); - } + if (shader->info.stage == MESA_SHADER_VERTEX) + nir_remap_dual_slot_attributes(shader, &sh->Program->DualSlotInputs); shader->info.name = ralloc_asprintf(shader, "GLSL%d", shader_prog->Name); if (shader_prog->Label) |