diff options
author | Marek Olšák <[email protected]> | 2012-03-31 22:17:19 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-04 04:28:40 +0200 |
commit | da2123051c3923a2953cdd96f05ad684e7d3c8c3 (patch) | |
tree | ebd9cfa49f4a8b2cc8131e0c0afd6fbdfeffa235 /src/gallium/drivers/r300/r300_context.c | |
parent | 5ce0598a034179eaacff96f39eaebf0ba0f30d4c (diff) |
r300g/swtcl: don't enter u_vbuf_mgr
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 158dbc07c7f..505c6ccf99e 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -418,17 +418,19 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, r300_init_query_functions(r300); r300_init_state_functions(r300); r300_init_resource_functions(r300); - + r300->context.create_video_decoder = vl_create_decoder; r300->context.create_video_buffer = vl_video_buffer_create; - r300->vbuf_mgr = u_vbuf_create(&r300->context, 1024 * 1024, 16, + if (r300->screen->caps.has_tcl) { + r300->vbuf_mgr = u_vbuf_create(&r300->context, 1024 * 1024, 16, PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER, U_VERTEX_FETCH_DWORD_ALIGNED); - if (!r300->vbuf_mgr) - goto fail; - r300->vbuf_mgr->caps.format_fixed32 = 0; + if (!r300->vbuf_mgr) + goto fail; + r300->vbuf_mgr->caps.format_fixed32 = 0; + } r300->blitter = util_blitter_create(&r300->context); if (r300->blitter == NULL) |