Module: Mesa
Branch: staging/18.1
Commit: 09196d4b665a423e04435ed41170d5c592c27e54
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=09196d4b665a423e04435ed41170d5c592c27e54

Author: Marek Olšák <[email protected]>
Date:   Tue Aug 28 14:59:25 2018 -0400

radeonsi: fix printing a BO list into ddebug reports

important for debugging

Cc: 18.1 18.2 <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
(cherry picked from commit 662db03577377cd0acca279ca482ea8e9a4e1704)

---

 src/gallium/drivers/radeonsi/si_gfx_cs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_gfx_cs.c 
b/src/gallium/drivers/radeonsi/si_gfx_cs.c
index ddfdb49736..12f5650d93 100644
--- a/src/gallium/drivers/radeonsi/si_gfx_cs.c
+++ b/src/gallium/drivers/radeonsi/si_gfx_cs.c
@@ -134,12 +134,13 @@ void si_flush_gfx_cs(struct si_context *ctx, unsigned 
flags,
 
        if (ctx->current_saved_cs) {
                si_trace_emit(ctx);
-               si_log_hw_flush(ctx);
 
                /* Save the IB for debug contexts. */
                si_save_cs(ws, cs, &ctx->current_saved_cs->gfx, true);
                ctx->current_saved_cs->flushed = true;
                ctx->current_saved_cs->time_flush = os_time_get_nano();
+
+               si_log_hw_flush(ctx);
        }
 
        /* Flush the CS. */

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to