Useful for debugging.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
if (ctx->cleared || ctx->gmem_reason || (ctx->num_draws > 5)) {
DBG("GMEM: cleared=%x, gmem_reason=%x, num_draws=%u",
ctx->cleared, ctx->gmem_reason, ctx->num_draws);
- } else {
+ } else if (!(fd_mesa_debug & FD_DBG_DBYPASS)) {
sysmem = true;
}
}
{"dgmem", FD_DBG_DGMEM, "Mark all state dirty after GMEM tile pass"},
{"dscis", FD_DBG_DSCIS, "Disable scissor optimization"},
{"direct", FD_DBG_DIRECT, "Force inline (SS_DIRECT) state loads"},
+ {"dbypass", FD_DBG_DBYPASS,"Disable GMEM bypass"},
DEBUG_NAMED_VALUE_END
};
#define FD_DBG_DGMEM 0x08
#define FD_DBG_DSCIS 0x10
#define FD_DBG_DIRECT 0x20
+#define FD_DBG_DBYPASS 0x40
extern int fd_mesa_debug;
#define DBG(fmt, ...) \