panfrost: Leave push_constants pointer to NULL if there's no uniform

This removes a warning in pandecode.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7408>
This commit is contained in:
Boris Brezillon
2020-10-28 09:09:06 +01:00
committed by Marge Bot
parent 29fc115d58
commit c0b8f7394b
+2 -1
View File
@@ -936,7 +936,8 @@ panfrost_emit_const_buf(struct panfrost_batch *batch,
}
}
*push_constants = transfer.gpu;
if (ss->uniform_count)
*push_constants = transfer.gpu;
buf->dirty_mask = 0;
return ubos.gpu;