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:
committed by
Marge Bot
parent
29fc115d58
commit
c0b8f7394b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user