diff options
author | Marek Olšák <[email protected]> | 2010-05-15 22:25:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-15 22:27:27 +0200 |
commit | cf5dff1f2337303f49780dc646a44c6dbbe48e5a (patch) | |
tree | 14c595886e56422575b4da464a6afa5efc7b36f7 /src/gallium/drivers/r300/r300_context.c | |
parent | 04882a29478088bce34eb90ae427e6c080c67500 (diff) |
r300g: the vertex_stream_state atom for SWTCL should be static
plus whitespace and comment fixes.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 775173b9a85..c45d4b64f42 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -80,6 +80,9 @@ static void r300_destroy_context(struct pipe_context* context) FREE(r300->ztop_state.state); FREE(r300->fs_constants.state); FREE(r300->vs_constants.state); + if (!r300->screen->caps.has_tcl) { + FREE(r300->vertex_stream_state.state); + } FREE(r300); } @@ -151,6 +154,9 @@ 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); + if (!r300->screen->caps.has_tcl) { + r300->vertex_stream_state.state = CALLOC_STRUCT(r300_vertex_stream_state); + } /* Some non-CSO atoms don't use the state pointer. */ r300->invariant_state.allow_null_state = TRUE; |