diff options
author | Brian Paul <[email protected]> | 2009-12-31 14:46:15 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-31 14:46:15 -0700 |
commit | 41450b03a8e8e0f94f8eefc6880d32e9b0ef6f6d (patch) | |
tree | 7ee85c856ee85d56ec9de0e2836333c6f6860e85 /src/gallium/drivers/softpipe/sp_context.c | |
parent | c0b4fb06b8b570b1999a0849797d3cb77f6ee5cd (diff) |
softpipe: implement 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 82173a3c2a3..f3ac6760db5 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! |