summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-27 23:08:04 +0200
committerMarek Olšák <[email protected]>2011-09-30 23:19:52 +0200
commit3d13b081c72626acba6b9a25baec740c60dfafe1 (patch)
tree52b980cb47924f976f1d147cb2f3ae432dbe1fef /src/gallium/state_trackers/d3d1x
parentf5bfe54a34d9c8cd5de2b096d0e8486fe0d990a7 (diff)
gallium: add PIPE_CAP_CONDITIONAL_RENDER
We were checking whether render_condition is set. That was not reliable, because it's always set with trace and noop regardless of driver support. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/d3d1x')
-rw-r--r--src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
index 6514146e367..2ab320ab331 100644
--- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
+++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h
@@ -150,7 +150,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
{
if(!pipe->begin_query)
caps.queries = false;
- if(!pipe->render_condition)
+ if(!pipe->render_condition || !screen->get_param(screen, PIPE_CAP_CONDITIONAL_RENDER))
caps.render_condition = false;
if(!pipe->bind_gs_state)
{