r600/eg: add support for tracing IBs after a hang.
[mesa.git] / src / gallium / drivers / r600 / r600_state_common.c
index 99ec5e7f7dc4e60ca61b1ea31687e91af60ff788..3b24f36119ca68ca650c380555422e2bf7cffad7 100644 (file)
@@ -2015,6 +2015,9 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
                radeon_emit(cs, EVENT_TYPE(EVENT_TYPE_SQ_NON_EVENT));
        }
 
+       if (rctx->trace_buf)
+               eg_trace_emit(rctx);
+
        if (rctx->framebuffer.do_update_surf_dirtiness) {
                /* Set the depth buffer as dirty. */
                if (rctx->framebuffer.state.zsbuf) {