llvmpipe: Don't waste time interpolating unused input channels.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_state_derived.c
index 2edfcb28ce6dafb0baa70426ba5d43256357f369..773aadc92d9cad63e9b5353899a7d878db3d8a96 100644 (file)
@@ -77,6 +77,7 @@ compute_vertex_info(struct llvmpipe_context *llvmpipe)
 
       /* This can be pre-computed, except for flatshade:
        */
+      inputs[i].usage_mask = lpfs->info.input_usage_mask[i];
       switch (lpfs->info.input_semantic_name[i]) {
       case TGSI_SEMANTIC_FACE:
          inputs[i].interp = LP_INTERP_FACING;