svga: remove unneeded svga_context_flush() in svga_end_query()

Since commit 99d8fe20ab 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>
This commit is contained in:
Brian Paul 2016-09-14 12:33:15 -06:00
parent f1b3374d28
commit c71e82b8e9

View file

@ -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: