diff options
author | Marek Olšák <[email protected]> | 2010-05-27 19:11:56 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-27 20:56:32 +0200 |
commit | 90e5a37d128efaca9e89434ab103826ee82cb911 (patch) | |
tree | da54ea88f6fcaad45f2f8061fcaa4724237ceb34 /src/gallium/drivers/r300/r300_state.c | |
parent | 8bd3a4c1aa564f63d4fae8903df792bed5efe8a1 (diff) |
r300g/swtcl: fix secondary color and back-face color outputs
These piglit tests have been fixed:
- bgra-sec-color-pointer
- glsl-routing
See comments at the beginning of r300_vs_draw.c
WPOS is implemented too but it doesn't work yet. I'm still working on it.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 80346e0c791..d7657218270 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1412,12 +1412,11 @@ 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_init_vs_outputs(vs); r300_translate_vertex_shader(r300, vs); } else { - vs->draw_vs = draw_create_vertex_shader(r300->draw, shader); + r300_draw_init_vertex_shader(r300->draw, vs); } return vs; |