mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-03 23:24:17 +08:00
zink: use correct number of samples on framebuffer in set_framebuffer_state
state->samples doesn't necessarily reflect the correct value here, so we need to use the util function Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6263>
This commit is contained in:
parent
f6c87216d3
commit
e30367a273
@ -611,7 +611,7 @@ zink_set_framebuffer_state(struct pipe_context *pctx,
|
||||
zink_framebuffer_reference(screen, &ctx->framebuffer, fb);
|
||||
zink_render_pass_reference(screen, &ctx->gfx_pipeline_state.render_pass, fb->rp);
|
||||
|
||||
ctx->gfx_pipeline_state.rast_samples = MAX2(state->samples, 1);
|
||||
ctx->gfx_pipeline_state.rast_samples = util_framebuffer_get_num_samples(state);
|
||||
ctx->gfx_pipeline_state.num_attachments = state->nr_cbufs;
|
||||
ctx->gfx_pipeline_state.hash = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user