<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 29, 2016, at 8:23 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
src/gallium/drivers/swr/swr_context.cpp | 10 +++++++++-<br class="">
1 file changed, 9 insertions(+), 1 deletion(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/swr_context.cpp b/src/gallium/drivers/swr/swr_context.cpp<br class="">
index b355bba..b8c87fa 100644<br class="">
--- a/src/gallium/drivers/swr/swr_context.cpp<br class="">
+++ b/src/gallium/drivers/swr/swr_context.cpp<br class="">
@@ -301,7 +301,10 @@ swr_blit(struct pipe_context *pipe, const struct pipe_blit_info *blit_info)<br class="">
      return;<br class="">
   }<br class="">
<br class="">
-   /* XXX turn off occlusion and streamout queries */<br class="">
+   if (ctx->active_queries) {<br class="">
+      SwrEnableStatsFE(ctx->swrContext, FALSE);<br class="">
+      SwrEnableStatsBE(ctx->swrContext, FALSE);<br class="">
+   }<br class="">
<br class="">
   util_blitter_save_vertex_buffer_slot(ctx->blitter, ctx->vertex_buffer);<br class="">
   util_blitter_save_vertex_elements(ctx->blitter, (void *)ctx->velems);<br class="">
@@ -335,6 +338,11 @@ swr_blit(struct pipe_context *pipe, const struct pipe_blit_info *blit_info)<br class="">
                                      ctx->render_cond_mode);<br class="">
<br class="">
   util_blitter_blit(ctx->blitter, &info);<br class="">
+<br class="">
+   if (ctx->active_queries) {<br class="">
+      SwrEnableStatsFE(ctx->swrContext, TRUE);<br class="">
+      SwrEnableStatsBE(ctx->swrContext, TRUE);<br class="">
+   }<br class="">
}<br class="">
<br class="">
<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>