diff options
author | Corbin Simpson <[email protected]> | 2010-01-19 17:56:12 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-01-19 18:15:17 -0800 |
commit | fcbd285e421903ee0a65f19f5d633b25b5923c24 (patch) | |
tree | de58bbd89564588b3bead6a7a6fdd0c7ebeecda8 /src/gallium/drivers/r300/r300_context.c | |
parent | 5e8240320ac39a3e8984054bc300743725312741 (diff) |
r300g: Make invariant state into an atom.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 94a9ab3ef3f..67ddec140a8 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -129,6 +129,7 @@ static void r300_setup_atoms(struct r300_context* r300) * an upper bound on each atom, to keep the emission machinery from * underallocating space. */ make_empty_list(&r300->atom_list); + R300_INIT_ATOM(invariant, 73); R300_INIT_ATOM(ztop, 2); R300_INIT_ATOM(blend, 8); R300_INIT_ATOM(blend_color, 3); @@ -208,7 +209,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, r300_init_state_functions(r300); - r300_emit_invariant_state(r300); + r300->invariant_state.dirty = TRUE; r300->winsys->set_flush_cb(r300->winsys, r300_flush_cb, r300); r300->dirty_state = R300_NEW_KITCHEN_SINK; |