Also provide a debug option to disable it.
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
"don't use tiled buffers" },
{ "nogrowheap", LIMA_DEBUG_NO_GROW_HEAP,
"disable growable heap buffer" },
+ { "singlesubmit", LIMA_DEBUG_SINGLE_SUBMIT,
+ "disable multi submit optimization" },
{ NULL }
};
#define LIMA_DEBUG_BO_CACHE (1 << 5)
#define LIMA_DEBUG_NO_TILING (1 << 6)
#define LIMA_DEBUG_NO_GROW_HEAP (1 << 7)
+#define LIMA_DEBUG_SINGLE_SUBMIT (1 << 8)
extern uint32_t lima_debug;
extern int lima_ctx_num_plb;
{
struct lima_context *ctx = lima_context(pctx);
- /* submit need framebuffer info, flush before change it */
- lima_flush(ctx);
+ /* make sure there are always single submit in this context */
+ if (lima_debug & LIMA_DEBUG_SINGLE_SUBMIT)
+ lima_flush(ctx);
struct lima_context_framebuffer *fb = &ctx->framebuffer;