glsl: Silence unused parameter warning
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 17 Jun 2016 03:35:44 +0000 (20:35 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Aug 2016 22:03:15 +0000 (15:03 -0700)
glsl/lower_buffer_access.cpp:324:55: warning: unused parameter ‘var’ [-Wunused-parameter]
                                          ir_variable *var,
                                                       ^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/lower_buffer_access.cpp
src/compiler/glsl/lower_buffer_access.h
src/compiler/glsl/lower_shared_reference.cpp
src/compiler/glsl/lower_ubo_reference.cpp

index 69dc82bf26110b2808d27e0badf7ad8d63eb92b7..51e65608c35cb4949f203bf8de0521d37d947ac0 100644 (file)
@@ -321,7 +321,6 @@ lower_buffer_access::is_dereferenced_thing_row_major(const ir_rvalue *deref)
  */
 void
 lower_buffer_access::setup_buffer_access(void *mem_ctx,
-                                         ir_variable *var,
                                          ir_rvalue *deref,
                                          ir_rvalue **offset,
                                          unsigned *const_offset,
index db9ac45ef1079bdb0481f880e6209ef4ec5d7659..a2e3e7d82845d5c19a0fe3a1311a0fa0ed8ec65c 100644 (file)
@@ -54,7 +54,7 @@ public:
 
    bool is_dereferenced_thing_row_major(const ir_rvalue *deref);
 
-   void setup_buffer_access(void *mem_ctx, ir_variable *var, ir_rvalue *deref,
+   void setup_buffer_access(void *mem_ctx, ir_rvalue *deref,
                             ir_rvalue **offset, unsigned *const_offset,
                             bool *row_major, int *matrix_columns,
                             const glsl_struct_field **struct_field,
index 1702469fe656d355952393356b063a5c6b52e324..091f4027320bcc63c821572202c33591c2e68b12 100644 (file)
@@ -140,7 +140,7 @@ lower_shared_reference_visitor::handle_rvalue(ir_rvalue **rvalue)
    assert(var->get_interface_type() == NULL);
    const enum glsl_interface_packing packing = GLSL_INTERFACE_PACKING_STD430;
 
-   setup_buffer_access(mem_ctx, var, deref,
+   setup_buffer_access(mem_ctx, deref,
                        &offset, &const_offset,
                        &row_major, &matrix_columns, NULL, packing);
 
@@ -208,7 +208,7 @@ lower_shared_reference_visitor::handle_assignment(ir_assignment *ir)
    assert(var->get_interface_type() == NULL);
    const enum glsl_interface_packing packing = GLSL_INTERFACE_PACKING_STD430;
 
-   setup_buffer_access(mem_ctx, var, deref,
+   setup_buffer_access(mem_ctx, deref,
                        &offset, &const_offset,
                        &row_major, &matrix_columns, NULL, packing);
 
@@ -368,7 +368,7 @@ lower_shared_reference_visitor::lower_shared_atomic_intrinsic(ir_call *ir)
    const enum glsl_interface_packing packing = GLSL_INTERFACE_PACKING_STD430;
    buffer_access_type = shared_atomic_access;
 
-   setup_buffer_access(mem_ctx, var, deref,
+   setup_buffer_access(mem_ctx, deref,
                        &offset, &const_offset,
                        &row_major, &matrix_columns, NULL, packing);
 
index 083f43f93a39d37e4e620af74627be56c743a48d..1ed281c488aaa1f837bdcb480040a486f6b79783 100644 (file)
@@ -320,7 +320,7 @@ lower_ubo_reference_visitor::setup_for_load_or_store(void *mem_ctx,
    *const_offset = ubo_var->Offset;
 
    this->struct_field = NULL;
-   setup_buffer_access(mem_ctx, var, deref, offset, const_offset, row_major,
+   setup_buffer_access(mem_ctx, deref, offset, const_offset, row_major,
                        matrix_columns, &this->struct_field, packing);
 }