Module: Mesa
Branch: main
Commit: feb971fdeec143b216472bd646569294817a50f0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=feb971fdeec143b216472bd646569294817a50f0

Author: Emma Anholt <[email protected]>
Date:   Mon Sep 20 11:13:44 2021 -0700

freedreno: Assert to check for the previous regression.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12942>

---

 src/gallium/drivers/freedreno/freedreno_autotune.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/freedreno/freedreno_autotune.c 
b/src/gallium/drivers/freedreno/freedreno_autotune.c
index d4ab28bcd8a..fd27e2be6eb 100644
--- a/src/gallium/drivers/freedreno/freedreno_autotune.c
+++ b/src/gallium/drivers/freedreno/freedreno_autotune.c
@@ -50,6 +50,8 @@ get_history(struct fd_autotune *at, struct fd_batch *batch)
 {
    struct fd_batch_history *history;
 
+   /* draw batches should still have their key at this point. */
+   assert(batch->key || batch->nondraw);
    if (!batch->key)
       return NULL;
 

Reply via email to