zink: also set msrtss stencil

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37057>
This commit is contained in:
Mike Blumenkrantz 2025-08-27 12:25:44 -04:00 committed by Marge Bot
parent 807644b864
commit 817077276a

View file

@ -3156,6 +3156,8 @@ begin_rendering(struct zink_context *ctx, bool check_msaa_expand)
if (ctx->fb_state.zsbuf.nr_samples && !has_msrtss) {
ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS].resolveImageView = iv;
ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS].resolveImageLayout = res->layout;
ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS+1].resolveImageView = iv;
ctx->dynamic_fb.attachments[PIPE_MAX_COLOR_BUFS+1].resolveImageLayout = res->layout;
iv = zink_create_transient_surface(ctx, &ctx->fb_state.zsbuf, ctx->fb_state.zsbuf.nr_samples)->image_view;
struct zink_resource *transient_res = res->transient;