From: Rob Clark Date: Mon, 5 Jun 2023 14:19:39 +0000 (-0700) Subject: freedreno/batch: Add driver-thread assert X-Git-Tag: upstream/23.3.3~7469 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca9dc7be3431c2ac7b1796dcf09aae111f401370;p=platform%2Fupstream%2Fmesa.git freedreno/batch: Add driver-thread assert Signed-off-by: Rob Clark Part-of: --- diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index d2023ca..d0e21a2 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -357,6 +357,8 @@ batch_flush(struct fd_batch *batch) assert_dt if (batch->flushed) return; + tc_assert_driver_thread(batch->ctx->tc); + batch->needs_flush = false; /* close out the draw cmds by making sure any active queries are