r300g: Cleanup old PSC code a bit.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user