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:
@@ -965,7 +965,8 @@ vn_android_get_ahb_format_properties(
|
|||||||
.a = VK_COMPONENT_SWIZZLE_IDENTITY,
|
.a = VK_COMPONENT_SWIZZLE_IDENTITY,
|
||||||
},
|
},
|
||||||
.suggestedYcbcrModel = model,
|
.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,
|
.suggestedXChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,
|
||||||
.suggestedYChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,
|
.suggestedYChromaOffset = VK_CHROMA_LOCATION_MIDPOINT,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user