freedreno: Assert to check for the previous regression.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12942>
This commit is contained in:
Emma Anholt 2021-09-20 11:13:44 -07:00 committed by Marge Bot
parent b8c4ad378d
commit feb971fdee

View file

@ -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;