summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2012-01-09 22:55:56 +0100
committerJakob Bornecrantz <[email protected]>2012-01-10 16:03:43 +0100
commit54f6b64e7ec905bad9e6ab0b7fc9e035c48030aa (patch)
treeb86ff888a1e66d0357662240e430d36d32cc54af /src/gallium/auxiliary
parent9af9e12bc57db3222d91992a69b7fd95231928f6 (diff)
draw: Silence warning
This peice of code has been here since the inital commit (c5c5cd71) and the code that used instance_id_index was removed in (caede752) by José. Signed-off-by: Jakob Bornecrantz <[email protected]> Reviewed-by Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
index de6ce7fad40..1e17f808408 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
@@ -71,8 +71,6 @@ llvm_middle_end_prepare( struct draw_pt_middle_end *middle,
struct draw_llvm_variant_key *key;
struct draw_llvm_variant *variant = NULL;
struct draw_llvm_variant_list_item *li;
- unsigned i;
- unsigned instance_id_index = ~0;
const unsigned out_prim = (draw->gs.geometry_shader ?
draw->gs.geometry_shader->output_primitive :
in_prim);
@@ -83,16 +81,6 @@ llvm_middle_end_prepare( struct draw_pt_middle_end *middle,
const unsigned nr = MAX2( shader->base.info.num_inputs,
shader->base.info.num_outputs + 1 );
- /* Scan for instanceID system value.
- * XXX but we never use instance_id_index?!
- */
- for (i = 0; i < shader->base.info.num_inputs; i++) {
- if (shader->base.info.input_semantic_name[i] == TGSI_SEMANTIC_INSTANCEID) {
- instance_id_index = i;
- break;
- }
- }
-
fpme->input_prim = in_prim;
fpme->opt = opt;