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: https://git.libre-soc.org/?a=commitdiff_plain;h=4e30fb4ecc36df5aed42d6dafa2242f2c136ea23;p=mesa.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 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),