Commit 64b7bd3f authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

panfrost: Sanity check layer

It doesn't make sense to try to render to multiple array elements at
once.
Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
parent eb3c0971
......@@ -95,6 +95,7 @@ panfrost_mfbd_set_cbuf(
unsigned level = surf->u.tex.level;
unsigned first_layer = surf->u.tex.first_layer;
assert(surf->u.tex.last_layer == first_layer);
int stride = rsrc->bo->slices[level].stride;
mali_ptr base = panfrost_get_texture_address(rsrc, level, first_layer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment