From: Alyssa Rosenzweig Date: Sat, 22 Jun 2019 00:39:02 +0000 (-0700) Subject: panfrost: Sanity check layer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64b7bd3f9042855389cde992134c4f3b51f3687f;p=mesa.git panfrost: Sanity check layer It doesn't make sense to try to render to multiple array elements at once. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index e74a8e6229f..af59497fa78 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -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);