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 <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12053>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user