From: Marek Olšák Date: Thu, 1 Jun 2017 20:25:57 +0000 (+0200) Subject: radeonsi: don't use info.num_inputs when it's unused X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e30fb4ecc36df5aed42d6dafa2242f2c136ea23;p=platform%2Fupstream%2Fmesa.git radeonsi: don't use info.num_inputs when it's unused For clarity. It's only used by color interpolation. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index a26de99..bb901ee 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),