mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
panvk: Enable SNORM rendering
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:
parent
f707f093ec
commit
497005dc18
1 changed files with 2 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue