mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
zink: fix format conversion logic for the alpha emulation case
cc: mesa-stable Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com> Fixes:252bff0f("zink: use real A8_UNORM when possible") Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> (cherry picked from commit640bc3bc53) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
parent
6c7f739b9d
commit
ec658ea317
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue