From 4e30fb4ecc36df5aed42d6dafa2242f2c136ea23 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 1 Jun 2017 22:25:57 +0200 Subject: radeonsi: don't use info.num_inputs when it's unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For clarity. It's only used by color interpolation. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index a26de99f509..bb901ee5b79 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1355,7 +1355,7 @@ static void declare_input_fs( } interp_fs_input(ctx, input_index, decl->Semantic.Name, - decl->Semantic.Index, shader->selector->info.num_inputs, + decl->Semantic.Index, 0, /* this param is unused */ shader->selector->info.colors_read, interp_param, LLVMGetParam(main_fn, SI_PARAM_PRIM_MASK), LLVMGetParam(main_fn, SI_PARAM_FRONT_FACE), -- cgit v1.2.3