intel/compiler: rename brw_nir_lower_glsl_images
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 5 Sep 2018 10:34:47 +0000 (12:34 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 5 Sep 2018 15:02:28 +0000 (17:02 +0200)
To brw_nir_lower_gl_images, as it will be also used on the
ARB_gl_spirv codepath, that doesn't involves GLSL at all. So the
lowering is about images following the OpenGL semantics. In any case
"brw_nir_lower_opengl_images" seemed too long to me, so I just used
gl. That shortening is already used on other parts of the code.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_nir.h
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/drivers/dri/i965/brw_program.c

index 500732655396d327c44c50f4eb308de98208beae..06f0e8690e414f473af177f1cbd85ddbd8810292 100644 (file)
@@ -149,8 +149,8 @@ void brw_nir_setup_arb_uniforms(void *mem_ctx, nir_shader *shader,
                                 struct gl_program *prog,
                                 struct brw_stage_prog_data *stage_prog_data);
 
-void brw_nir_lower_glsl_images(nir_shader *shader,
-                               const struct gl_program *prog);
+void brw_nir_lower_gl_images(nir_shader *shader,
+                             const struct gl_program *prog);
 
 void brw_nir_analyze_ubo_ranges(const struct brw_compiler *compiler,
                                 nir_shader *nir,
index 34cabdc297703a4a19c7017175f73edee6c23fee..35416a74b9c0ca9bd64caa540f0cd254c669341c 100644 (file)
@@ -299,8 +299,8 @@ get_aoa_deref_offset(nir_builder *b,
 }
 
 void
-brw_nir_lower_glsl_images(nir_shader *shader,
-                          const struct gl_program *prog)
+brw_nir_lower_gl_images(nir_shader *shader,
+                        const struct gl_program *prog)
 {
    /* We put image uniforms at the end */
    nir_foreach_variable(var, &shader->uniforms) {
index 041395ec4c0558cbfab063c1801cc6fb13f66de2..ba418e45b85009d17a0d2b2daa10937fba051537 100644 (file)
@@ -140,7 +140,7 @@ brw_create_nir(struct brw_context *brw,
    }
 
    NIR_PASS_V(nir, brw_nir_lower_uniforms, is_scalar);
-   NIR_PASS_V(nir, brw_nir_lower_glsl_images, prog);
+   NIR_PASS_V(nir, brw_nir_lower_gl_images, prog);
 
    return nir;
 }