mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
41417a9949
commit
8aa5ba4012
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue