Message ID | 1288491846.2886.12.camel@pcjc2lap (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index 9b39823..005794b 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -125,6 +125,8 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file, if (intel->first_post_swapbuffers_batch == NULL) { intel->first_post_swapbuffers_batch = intel->batch->buf; drm_intel_bo_reference(intel->first_post_swapbuffers_batch); + /* XXX: HACK PUTTING THIS HERE */ + drm_intel_trace_idle (intel->bufmgr, 1); } if (used == 0) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 7ace50b..577f7f8 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -566,6 +566,8 @@ intel_glFlush(struct gl_context *ctx) intel_flush(ctx); intel_flush_front(ctx); intel->need_throttle = GL_TRUE; + /* XXX: HACK PUTTING THIS HERE */ + drm_intel_trace_idle (intel->bufmgr, 0); } void