Mesa (master): i965: Stop flushing the batch on timestamp queries, too.

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 19 18:47:25 UTC 2012


Module: Mesa
Branch: master
Commit: cae077cd0ff81ecbe67ef9bec88734891934c54e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cae077cd0ff81ecbe67ef9bec88734891934c54e

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Oct 16 11:27:27 2012 -0700

i965: Stop flushing the batch on timestamp queries, too.

Given the usecase we have of trying to measure timestamps across individual
draw calls, flushing will totally mess up what people are trying to measure.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_queryobj.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c
index 89420e9..1aa4974 100644
--- a/src/mesa/drivers/dri/i965/brw_queryobj.c
+++ b/src/mesa/drivers/dri/i965/brw_queryobj.c
@@ -302,7 +302,6 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q)
 
    case GL_TIME_ELAPSED_EXT:
       write_timestamp(intel, query->bo, 1);
-      intel_batchbuffer_flush(intel);
       break;
 
    case GL_SAMPLES_PASSED_ARB:




More information about the mesa-commit mailing list