glsl: rename gl_nir_link() to gl_nir_link_spirv()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 11 Dec 2019 04:48:32 +0000 (15:48 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 6 Jan 2020 21:38:41 +0000 (08:38 +1100)
A NIR based glsl linking function will be too different to the
spirv version to bother attempting any sharing. So lets change
the name to be explicit.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/gl_nir_linker.c
src/compiler/glsl/gl_nir_linker.h
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/state_tracker/st_glsl_to_nir.cpp

index 5ad590726f126c9d76f1899cec9a413cde76264e..07aab9091db136cf59365af55c56e62708a09a55 100644 (file)
@@ -567,8 +567,8 @@ nir_build_program_resource_list(struct gl_context *ctx,
 }
 
 bool
-gl_nir_link(struct gl_context *ctx, struct gl_shader_program *prog,
-            const struct gl_nir_linker_options *options)
+gl_nir_link_spirv(struct gl_context *ctx, struct gl_shader_program *prog,
+                  const struct gl_nir_linker_options *options)
 {
    if (!gl_nir_link_uniform_blocks(ctx, prog))
       return false;
index bc7b053119cd31cb69d937e7d4eed3e03e296aa5..944f7744adb7800a84b89f88450ea3277512d81f 100644 (file)
@@ -35,9 +35,9 @@ struct gl_nir_linker_options {
    bool fill_parameters;
 };
 
-bool gl_nir_link(struct gl_context *ctx,
-                 struct gl_shader_program *prog,
-                 const struct gl_nir_linker_options *options);
+bool gl_nir_link_spirv(struct gl_context *ctx,
+                       struct gl_shader_program *prog,
+                       const struct gl_nir_linker_options *options);
 
 bool gl_nir_link_uniforms(struct gl_context *ctx,
                           struct gl_shader_program *prog,
index c77b696e6a7051c6deaa55b6f366be74c56292aa..2a844575c3d2907e97bbc9a25600d9c7f1fbc6d5 100644 (file)
@@ -272,7 +272,7 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
       static const gl_nir_linker_options opts = {
          .fill_parameters = false,
       };
-      if (!gl_nir_link(ctx, shProg, &opts))
+      if (!gl_nir_link_spirv(ctx, shProg, &opts))
          return GL_FALSE;
    }
 
index 3663410ae1b71c711150710d184cdba8d42f5f25..11b6db490b94268580f01718682e5b77f755fc23 100644 (file)
@@ -705,7 +705,7 @@ st_link_nir(struct gl_context *ctx,
       static const gl_nir_linker_options opts = {
          true /*fill_parameters */
       };
-      if (!gl_nir_link(ctx, shader_program, &opts))
+      if (!gl_nir_link_spirv(ctx, shader_program, &opts))
          return GL_FALSE;
 
       nir_build_program_resource_list(ctx, shader_program, true);