mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
zink: only warn once for SRGB fb without KHR_swapchain_mutable_format
Fixes: 4bb45bcd16 ("zink: add error logging for SRGB framebuffer without KHR_swapchain_mutable_format")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16642>
This commit is contained in:
parent
37764272ab
commit
c97aee426e
1 changed files with 7 additions and 2 deletions
|
|
@ -2610,8 +2610,13 @@ zink_set_framebuffer_state(struct pipe_context *pctx,
|
|||
if (res->obj->dt) {
|
||||
/* #6274 */
|
||||
if (!zink_screen(ctx->base.screen)->info.have_KHR_swapchain_mutable_format &&
|
||||
psurf->format != res->base.b.format)
|
||||
mesa_loge("zink: SRGB framebuffer unsupported without KHR_swapchain_mutable_format");
|
||||
psurf->format != res->base.b.format) {
|
||||
static bool warned = false;
|
||||
if (!warned) {
|
||||
mesa_loge("zink: SRGB framebuffer unsupported without KHR_swapchain_mutable_format");
|
||||
warned = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
res->fb_binds++;
|
||||
ctx->gfx_pipeline_state.void_alpha_attachments |= util_format_has_alpha1(psurf->format) ? BITFIELD_BIT(i) : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue