summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYiwei Zhang <zzyiwei@chromium.org>2022-06-29 23:25:54 +0000
committerMarge Bot <emma+marge@anholt.net>2022-06-30 20:11:04 +0000
commit9f59acaa48eb250efc2488ff5e95d0a46a0f19d9 (patch)
treed066ced42602f1c24eb0cb0f07f4107dd077eb33 /src
parent93fd97cec460f36a699554dbb162bef8e883684a (diff)
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@chromium.org> Reviewed-by: Ryan Neph <ryanneph@google.com> Reviewed-by: Chad Versace <chadversary@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17306>
Diffstat (limited to 'src')
-rw-r--r--src/virtio/vulkan/vn_android.c3
1 files changed, 2 insertions, 1 deletions
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,
};