summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2016-10-28 11:33:53 -0700
committerBrian Paul <[email protected]>2016-11-03 14:29:22 -0600
commitd787ce7288d63923dd8211e117baea86faaf3539 (patch)
treee86cbc72ab1dbc40269e669c51299b5f75248c6c /src/gallium/drivers/svga/svga_context.h
parent76f5f76468225a540c31877bf11fa11d0dcf3225 (diff)
svga: Implement the pipe clear_render_target functionality v2
v2: Accounted for the fact that svga_try_clear_render_target also honors conditional rendering. Testing done: Excercised all functions in a separate feature branch. Forced emission of conditional rendering commands when necessary. Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 5148372753d..3e65384a07a 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -583,6 +583,12 @@ struct svga_context
/** Alternate rasterizer states created for point sprite */
struct svga_rasterizer_state *rasterizer_no_cull[2];
+
+ /** Current conditional rendering predicate */
+ struct {
+ SVGA3dQueryId query_id;
+ boolean cond;
+ } pred;
};
/* A flag for each state_tracker state object:
@@ -622,7 +628,6 @@ struct svga_context
-
/***********************************************************************
* svga_screen_texture.c:
*/