summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-06-24 12:26:46 +0200
committerNicolai Hähnle <[email protected]>2017-07-03 13:57:01 +0200
commit7c5b204e38d8cae70f5bf26e7223da5bc448bb5c (patch)
tree4d1e17ca81e4ced5b902f5a1540784712f2f36b9 /src/mesa/program
parent8988571824bf3fba1bdbb92a18f706502f43d092 (diff)
mesa: remove unused parameter/member of add_uniform_to_shader
Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index d70494c2f95..93c6946fd63 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2409,10 +2409,8 @@ namespace {
class add_uniform_to_shader : public program_resource_visitor {
public:
add_uniform_to_shader(struct gl_shader_program *shader_program,
- struct gl_program_parameter_list *params,
- gl_shader_stage shader_type)
- : shader_program(shader_program), params(params), idx(-1),
- shader_type(shader_type)
+ struct gl_program_parameter_list *params)
+ : shader_program(shader_program), params(params), idx(-1)
{
/* empty */
}
@@ -2435,7 +2433,6 @@ private:
struct gl_program_parameter_list *params;
int idx;
ir_variable *var;
- gl_shader_stage shader_type;
};
} /* anonymous namespace */
@@ -2483,7 +2480,7 @@ _mesa_generate_parameters_list_for_uniforms(struct gl_shader_program
struct gl_program_parameter_list
*params)
{
- add_uniform_to_shader add(shader_program, params, sh->Stage);
+ add_uniform_to_shader add(shader_program, params);
foreach_in_list(ir_instruction, node, sh->ir) {
ir_variable *var = node->as_variable();