Module: Mesa Branch: main Commit: bd859e1f96565e2676048ee4d85ca6ee4fcd6850 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd859e1f96565e2676048ee4d85ca6ee4fcd6850
Author: Mike Blumenkrantz <[email protected]> Date: Wed Jun 15 13:00:35 2022 -0400 zink: clamp renderpass layers better this needs to be the minimum layer, not the maximum cc: mesa-stable Reviewed-by: Adam Jackson <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17061> --- src/gallium/drivers/zink/zink_framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_framebuffer.c b/src/gallium/drivers/zink/zink_framebuffer.c index e0bc32d1aaa..8fc540bbb17 100644 --- a/src/gallium/drivers/zink/zink_framebuffer.c +++ b/src/gallium/drivers/zink/zink_framebuffer.c @@ -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;
