Mesa (main): venus: use narrow range to match up with mesa EGL
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 30 20:18:52 UTC 2022
Module: Mesa
Branch: main
Commit: 9f59acaa48eb250efc2488ff5e95d0a46a0f19d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f59acaa48eb250efc2488ff5e95d0a46a0f19d9
Author: Yiwei Zhang <zzyiwei at chromium.org>
Date: Wed Jun 29 23:25:54 2022 +0000
venus: use narrow range to match up with mesa EGL
This matches up with the native gl drivers as well as the media stack.
Test: android.graphics.cts.MediaVulkanGpuTest
Test: android.media.cts.EncodeDecodeTest
Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
Reviewed-by: Ryan Neph <ryanneph at google.com>
Reviewed-by: Chad Versace <chadversary at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17306>
---
src/virtio/vulkan/vn_android.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/virtio/vulkan/vn_android.c b/src/virtio/vulkan/vn_android.c
index 58781fffe62..67206404299 100644
--- a/src/virtio/vulkan/vn_android.c
+++ b/src/virtio/vulkan/vn_android.c
@@ -965,7 +965,8 @@ vn_android_get_ahb_format_properties(
.a = VK_COMPONENT_SWIZZLE_IDENTITY,
},
.suggestedYcbcrModel = model,
- .suggestedYcbcrRange = VK_SAMPLER_YCBCR_RANGE_ITU_FULL,
+ /* match EGL_YUV_NARROW_RANGE_EXT used in egl platform_android */
+ .suggestedYcbcrRange = VK_SAMPLER_YCBCR_RANGE_ITU_NARROW,
.suggestedXChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,
.suggestedYChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,
};
More information about the mesa-commit
mailing list