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>
This commit is contained in:
parent
93fd97cec4
commit
9f59acaa48
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue