From f687b8e1785df0825443f07778e5d0ddf6f9be09 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 12 May 2016 17:44:46 -0700 Subject: i965: Silence unused parameter warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The only place that actually used the type parameter was the GS visitor, and it was always passed glsl_type::int. Just remove the parameter. brw_vec4_vs_visitor.cpp:38:61: warning: unused parameter ‘type’ [-Wunused-parameter] const glsl_type *type) ^ Signed-off-by: Ian Romanick Reviewed-by: Timothy Arceri --- src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp') diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp index f591add..76a80a5 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp @@ -52,10 +52,9 @@ vec4_gs_visitor::vec4_gs_visitor(const struct brw_compiler *compiler, dst_reg * -vec4_gs_visitor::make_reg_for_system_value(int location, - const glsl_type *type) +vec4_gs_visitor::make_reg_for_system_value(int location) { - dst_reg *reg = new(mem_ctx) dst_reg(this, type); + dst_reg *reg = new(mem_ctx) dst_reg(this, glsl_type::int_type); switch (location) { case SYSTEM_VALUE_INVOCATION_ID: -- cgit v1.1