zink: don't append msrtss to dynamic render if not supported

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24309>
(cherry picked from commit 2630a89b72)
This commit is contained in:
Mike Blumenkrantz 2023-07-25 12:30:01 -04:00 committed by Eric Engestrom
parent 1d3b7bcc72
commit c98f0701e0
2 changed files with 3 additions and 2 deletions

View file

@ -859,7 +859,7 @@
"description": "zink: don't append msrtss to dynamic render if not supported",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2790,7 +2790,8 @@ begin_rendering(struct zink_context *ctx)
ctx->gfx_pipeline_state.rast_samples + 1,
};
ctx->dynamic_fb.info.pNext = ctx->transient_attachments ? &msrtss : NULL;
if (zink_screen(ctx->base.screen)->info.have_EXT_multisampled_render_to_single_sampled)
ctx->dynamic_fb.info.pNext = ctx->transient_attachments ? &msrtss : NULL;
assert(!ctx->transient_attachments || msrtss.rasterizationSamples != VK_SAMPLE_COUNT_1_BIT);
VKCTX(CmdBeginRendering)(ctx->batch.state->cmdbuf, &ctx->dynamic_fb.info);
ctx->batch.in_rp = true;