summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-09-14 18:33:15 (GMT)
committerBrian Paul <brianp@vmware.com>2016-09-17 16:24:13 (GMT)
commitc71e82b8e98a16ac77ee53659b709deb5204d30b (patch)
tree810c51b5a1925b024d8ce1d0cd2fdfaa099bd261
parentf1b3374d28577ca0b84ce1fbab171c39a637d3df (diff)
downloadmesa-c71e82b8e98a16ac77ee53659b709deb5204d30b.tar.gz
mesa-c71e82b8e98a16ac77ee53659b709deb5204d30b.tar.xz
svga: remove unneeded svga_context_flush() in svga_end_query()
Since commit 99d8fe20abe1f we don't have to flush the command buffer when we end a query. Tested with Piglit, Sauerbraten, arbocclude, ETQW (noticably faster now). Reviewed-by: José Fonseca <jfonseca@vmware.com>
-rw-r--r--src/gallium/drivers/svga/svga_pipe_query.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c
index a0aa213..74a7f5f 100644
--- a/src/gallium/drivers/svga/svga_pipe_query.c
+++ b/src/gallium/drivers/svga/svga_pipe_query.c
@@ -986,11 +986,6 @@ svga_end_query(struct pipe_context *pipe, struct pipe_query *q)
}
assert(ret == PIPE_OK);
(void) ret;
- /* TODO: Delay flushing. We don't really need to flush here, just ensure
- * that there is one flush before svga_get_query_result attempts to get
- * the result.
- */
- svga_context_flush(svga, NULL);
break;
case PIPE_QUERY_PRIMITIVES_GENERATED:
case PIPE_QUERY_PRIMITIVES_EMITTED: