summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-03-08 21:35:43 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-03-09 07:30:49 -0800
commit9c8cb12388be6818ac11a28d40034d01047584b2 (patch)
tree58e7d301a030a3afcec8f2a134abafdacf480b4e /src/gallium
parent4d02534628e5fd4cd1231c5d742928b34067f25c (diff)
r300g: Cleanup old PSC code a bit.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_state_derived.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index 81a373abad..cb2b9bd99f 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -114,13 +114,9 @@ static void r300_vertex_psc(struct r300_context* r300)
uint16_t type, swizzle;
enum pipe_format format;
unsigned i;
- int identity[16] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
- int* stream_tab;
memset(vformat, 0, sizeof(struct r300_vertex_stream_state));
- stream_tab = identity;
-
/* Vertex shaders have no semantics on their inputs,
* so PSC should just route stuff based on the vertex elements,
* and not on attrib information. */
@@ -133,7 +129,7 @@ static void r300_vertex_psc(struct r300_context* r300)
format = r300->velems->velem[i].src_format;
type = r300_translate_vertex_data_type(format) |
- (stream_tab[i] << R300_DST_VEC_LOC_SHIFT);
+ (i << R300_DST_VEC_LOC_SHIFT);
swizzle = r300_translate_vertex_data_swizzle(format);
if (i & 1) {