diff options
author | Brian Paul <brianp@vmware.com> | 2010-01-04 11:47:39 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-01-04 11:47:39 -0700 |
commit | 0fb1eaddfbaf487067e0ff4f1d6f82145b6b0acd (patch) | |
tree | 0f3f0239f09d5681e38a474259e018ba34a160a2 /src/gallium/drivers/softpipe/sp_context.c | |
parent | 195568e4cb0524d71db0ac68cf5a95b33a1af6b4 (diff) | |
parent | c9b558351847133dced0c9daaeb84d57d550afc9 (diff) |
Merge branch 'gallium-conditional-rendering'
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_context.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_context.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c index 82173a3c2a..f3ac6760db 100644 --- a/src/gallium/drivers/softpipe/sp_context.c +++ b/src/gallium/drivers/softpipe/sp_context.c @@ -176,6 +176,19 @@ softpipe_is_buffer_referenced( struct pipe_context *pipe, } +static void +softpipe_render_condition( struct pipe_context *pipe, + struct pipe_query *query, + uint mode ) +{ + struct softpipe_context *softpipe = softpipe_context( pipe ); + + softpipe->render_cond_query = query; + softpipe->render_cond_mode = mode; +} + + + struct pipe_context * softpipe_create( struct pipe_screen *screen ) { @@ -252,6 +265,8 @@ softpipe_create( struct pipe_screen *screen ) softpipe_init_query_funcs( softpipe ); + softpipe->pipe.render_condition = softpipe_render_condition; + /* * Alloc caches for accessing drawing surfaces and textures. * Must be before quad stage setup! |