aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2018-03-21 09:39:32 +0100
committerAlejandro Piñeiro <[email protected]>2018-08-13 16:28:27 +0200
commitd6c80666634378d5f4b1df383510214808b225d6 (patch)
tree81422352df50ac3c2edae8fa1576a617fb5a824b /src/compiler/glsl
parentaf194bd38e1f75495f9251934340d3d3bcc80ee4 (diff)
nir/glsl: make nir_remap_attributes public
As we plan to reuse it for ARB_gl_spirv implementation. Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/glsl_to_nir.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index 1e4d9f9d3c8..b1d1da89111 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -128,23 +128,6 @@ private:
} /* end of anonymous namespace */
-static void
-nir_remap_attributes(nir_shader *shader,
- const nir_shader_compiler_options *options)
-{
- if (options->vs_inputs_dual_locations) {
- nir_foreach_variable(var, &shader->inputs) {
- var->data.location +=
- _mesa_bitcount_64(shader->info.vs.double_inputs &
- BITFIELD64_MASK(var->data.location));
- }
- }
-
- /* Once the remap is done, reset double_inputs_read, so later it will have
- * which location/slots are doubles */
- shader->info.vs.double_inputs = 0;
-}
-
nir_shader *
glsl_to_nir(const struct gl_shader_program *shader_prog,
gl_shader_stage stage,