From 8aa5ba4012b2b8fb5ca8fb615a917ea3fd76ba64 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 24 Jul 2021 13:55:19 -0400 Subject: [PATCH] asahi: Assert texture layer is nonzero The app shouldn't do funny things with layers... currently unsupported, one issue at a time... Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 26011829805..23244bbba19 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -459,6 +459,7 @@ agx_create_sampler_view(struct pipe_context *pctx, util_format_compose_swizzles(desc->swizzle, view_swizzle, out_swizzle); unsigned level = state->u.tex.first_level; + assert(state->u.tex.first_layer == 0); /* Pack the descriptor into GPU memory */ agx_pack(so->desc->ptr.cpu, TEXTURE, cfg) {