zink: clamp renderpass layers better
this needs to be the minimum layer, not the maximum cc: mesa-stable Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17061>
This commit is contained in:
committed by
Marge Bot
parent
7edecbf4c2
commit
bd859e1f96
@@ -188,7 +188,7 @@ zink_get_framebuffer(struct zink_context *ctx)
|
||||
state.num_attachments += num_resolves;
|
||||
state.width = MAX2(ctx->fb_state.width, 1);
|
||||
state.height = MAX2(ctx->fb_state.height, 1);
|
||||
state.layers = MAX2(util_framebuffer_get_num_layers(&ctx->fb_state), 1) - 1;
|
||||
state.layers = MAX2(zink_framebuffer_get_num_layers(&ctx->fb_state), 1) - 1;
|
||||
state.samples = ctx->fb_state.samples - 1;
|
||||
|
||||
struct zink_framebuffer *fb;
|
||||
|
||||
Reference in New Issue
Block a user