panvk: Enable SNORM rendering
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Blending should work properly those days.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37271>
This commit is contained in:
Mary Guillemard 2025-09-10 07:39:46 +00:00 committed by Marge Bot
parent f707f093ec
commit 497005dc18

View file

@ -557,16 +557,8 @@ get_image_plane_format_features(struct panvk_physical_device *physical_device,
if (fmt.bind & PAN_BIND_RENDER_TARGET) {
features |= VK_FORMAT_FEATURE_2_BLIT_DST_BIT;
/* SNORM rendering isn't working yet (nir_lower_blend bugs), disable for
* now.
*
* XXX: Enable once fixed.
*/
if (!util_format_is_snorm(pfmt)) {
features |= VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT;
features |= VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT;
}
features |= VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT;
features |= VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT;
}
if (fmt.bind & PAN_BIND_STORAGE_IMAGE) {