From 3d13b081c72626acba6b9a25baec740c60dfafe1 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 27 Sep 2011 23:08:04 +0200 Subject: 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 --- src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/d3d1x') 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 { 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) { -- cgit v1.2.3