diff --git a/.pick_status.json b/.pick_status.json index 16eb7fc1775..550478faa17 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -5524,7 +5524,7 @@ "description": "zink: fix format conversion logic for the alpha emulation case", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "252bff0f487763d11f0e4a995be0c42070751d87", "notes": null diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 2c2148720f7..96ab56a2140 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -1299,7 +1299,7 @@ zink_is_format_supported(struct pipe_screen *pscreen, } /* always use superset to determine feature support */ - VkFormat vkformat = zink_get_format(screen, PIPE_FORMAT_A8_UNORM ? zink_format_get_emulated_alpha(format) : format); + VkFormat vkformat = zink_get_format(screen, format == PIPE_FORMAT_A8_UNORM ? zink_format_get_emulated_alpha(format) : format); if (vkformat == VK_FORMAT_UNDEFINED) return false;