diff options
author | Marek Olšák <[email protected]> | 2010-05-15 22:55:17 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-15 22:55:17 +0200 |
commit | f86ac27bf9203fdd9b7110dc843263307f475a99 (patch) | |
tree | f19b9fa1b289e376ea35561c03b7e85921fcda3f /src/gallium/drivers/r300/r300_state.c | |
parent | cf5dff1f2337303f49780dc646a44c6dbbe48e5a (diff) |
r300g: fix psychedelic colors with SWTCL
r300_vertex_shader::outputs was uninitialized.
Also remove the tokens parameter.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 4860fe404db..73713eab989 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1428,8 +1428,10 @@ static void* r300_create_vs_state(struct pipe_context* pipe, vs->state = *shader; vs->state.tokens = tgsi_dup_tokens(shader->tokens); + r300_init_vs_outputs(vs); + if (r300->screen->caps.has_tcl) { - r300_translate_vertex_shader(r300, vs, vs->state.tokens); + r300_translate_vertex_shader(r300, vs); } else { vs->draw_vs = draw_create_vertex_shader(r300->draw, shader); } |