diff options
author | Marek Olšák <[email protected]> | 2010-06-25 02:16:43 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-26 17:57:20 +0200 |
commit | fcacc6a076ee5bc894eb7f5a7943715ff1ddf9ee (patch) | |
tree | 606e16631f1e669f4f58293b4b2fc149b1dde461 /src/gallium/drivers/r300/r300_state.c | |
parent | 8350d1d6f18d5c48fab4949d8b3c087b8390a49c (diff) |
r300g: introduce VAP invariant state
Unlike other invariant states, this one must be emitted after VAP flush.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 9c0f877e814..27ec5bc2b3e 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1567,7 +1567,6 @@ static void* r300_create_vs_state(struct pipe_context* pipe, const struct pipe_shader_state* shader) { struct r300_context* r300 = r300_context(pipe); - struct r300_vertex_shader* vs = CALLOC_STRUCT(r300_vertex_shader); /* Copy state directly into shader. */ @@ -1604,7 +1603,7 @@ static void r300_bind_vs_state(struct pipe_context* pipe, void* shader) if (r300->screen->caps.has_tcl) { r300->vs_state.dirty = TRUE; r300->vs_state.size = - vs->code.length + 18 + + vs->code.length + 9 + (vs->immediates_count ? vs->immediates_count * 4 + 3 : 0); if (vs->externals_count) { |