summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_draw.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-04-06 12:08:37 -0700
committerEric Anholt <eric@anholt.net>2014-04-11 13:38:53 -0700
commit99442bc7b20e4d76a5bdff72821e86a7ff5942ab (patch)
tree55c4999b2ab61a3b4bc3628283aaf48dd7a66dce /src/mesa/drivers/dri/i965/brw_draw.c
parent9a5d19d680323dfb9705c6c5ac10ac30d9ccc842 (diff)
downloadexternal_mesa3d-99442bc7b20e4d76a5bdff72821e86a7ff5942ab.zip
external_mesa3d-99442bc7b20e4d76a5bdff72821e86a7ff5942ab.tar.gz
external_mesa3d-99442bc7b20e4d76a5bdff72821e86a7ff5942ab.tar.bz2
i965: Stop setting up a 1:1 "attrib" member in our vertex inputs.
It's just the array index, so we can just go look at the array and see which element we are. No significant performance difference (n=140) Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_draw.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 0c131be..583c7d6 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -291,7 +291,6 @@ static void brw_merge_inputs( struct brw_context *brw,
for (i = 0; i < VERT_ATTRIB_MAX; i++) {
brw->vb.inputs[i].buffer = -1;
brw->vb.inputs[i].glarray = arrays[i];
- brw->vb.inputs[i].attrib = (gl_vert_attrib) i;
}
}