diff options
author | Marek Olšák <[email protected]> | 2010-05-15 21:22:23 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-15 21:22:23 +0200 |
commit | 95ba021105a2f1a29c8a4f51641c7a0b527226be (patch) | |
tree | 569ec99d0dad5b1f4f4846b3299aeddb00f0035c /src/gallium/drivers/r300/r300_context.c | |
parent | af87ef10dc3c3940ddd27ff699406edd7a1dcc38 (diff) |
r300g: fix emission of some non-CSO atoms at the beginning of CS
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 0444fdac7d5..775173b9a85 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -151,6 +151,13 @@ static void r300_setup_atoms(struct r300_context* r300) r300->ztop_state.state = CALLOC_STRUCT(r300_ztop_state); r300->fs_constants.state = CALLOC_STRUCT(r300_constant_buffer); r300->vs_constants.state = CALLOC_STRUCT(r300_constant_buffer); + + /* Some non-CSO atoms don't use the state pointer. */ + r300->invariant_state.allow_null_state = TRUE; + r300->fs_rc_constant_state.allow_null_state = TRUE; + r300->pvs_flush.allow_null_state = TRUE; + r300->query_start.allow_null_state = TRUE; + r300->texture_cache_inval.allow_null_state = TRUE; } struct pipe_context* r300_create_context(struct pipe_screen* screen, |