mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
zink: add error logging for SRGB framebuffer without KHR_swapchain_mutable_format
this is going to explode, so at least print an error explaining why Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15808>
This commit is contained in:
parent
bbede22850
commit
4bb45bcd16
1 changed files with 6 additions and 0 deletions
|
|
@ -2766,6 +2766,12 @@ zink_set_framebuffer_state(struct pipe_context *pctx,
|
|||
assert(!ctx->needs_present || ctx->needs_present == res);
|
||||
ctx->needs_present = res;
|
||||
}
|
||||
if (res->obj->dt) {
|
||||
/* #6274 */
|
||||
if (!zink_screen(ctx->base.screen)->info.have_KHR_swapchain_mutable_format &&
|
||||
surf->format != res->base.b.format)
|
||||
mesa_loge("zink: SRGB framebuffer unsupported without KHR_swapchain_mutable_format");
|
||||
}
|
||||
res->fb_binds++;
|
||||
ctx->gfx_pipeline_state.void_alpha_attachments |= util_format_has_alpha1(surf->format) ? BITFIELD_BIT(i) : 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue