radeonsi: don't use info.num_inputs when it's unused
authorMarek Olšák <marek.olsak@amd.com>
Thu, 1 Jun 2017 20:25:57 +0000 (22:25 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Jul 2017 14:50:39 +0000 (10:50 -0400)
For clarity. It's only used by color interpolation.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index a26de99f5097ebae9fefff8bb7d2ca2935dd9439..bb901ee5b79fbdfa285fa2dc55b9048b000cbfcd 100644 (file)
@@ -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),