Commit 18a5e7a6 by Alexis Hetu Committed by Commit Bot

Enable packing extensions for the Vulkan backend

The following extensions are ES2 extensions which become core in ES3: - EXT_unpack_subimage - NV_pack_subimage Since the Vulkan backend already fully supports ES3, it should be ok to enable these for ES2 contexts. This fixes all YUV related viz_unittests failures when using SwANGLE with the passthrough command decoder. Bug: chromium:1060139 Change-Id: I24ffd7a58f576799b93fe91e6be4032ca3175eda Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2676201Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Alexis Hétu <sugoi@chromium.org>
parent 72815904
...@@ -483,6 +483,12 @@ void RendererVk::ensureCapsInitialized() const ...@@ -483,6 +483,12 @@ void RendererVk::ensureCapsInitialized() const
mNativeExtensions.sampleVariablesOES = mNativeExtensions.sampleVariablesOES =
supportSampleRateShading && vk_gl::GetMaxSampleCount(kNotSupportedSampleCounts) == 0; supportSampleRateShading && vk_gl::GetMaxSampleCount(kNotSupportedSampleCounts) == 0;
// Enable EXT_unpack_subimage
mNativeExtensions.unpackSubimage = true;
// Enable NV_pack_subimage
mNativeExtensions.packSubimage = true;
mNativeCaps.minInterpolationOffset = limitsVk.minInterpolationOffset; mNativeCaps.minInterpolationOffset = limitsVk.minInterpolationOffset;
mNativeCaps.maxInterpolationOffset = limitsVk.maxInterpolationOffset; mNativeCaps.maxInterpolationOffset = limitsVk.maxInterpolationOffset;
mNativeCaps.subPixelInterpolationOffsetBits = limitsVk.subPixelInterpolationOffsetBits; mNativeCaps.subPixelInterpolationOffsetBits = limitsVk.subPixelInterpolationOffsetBits;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment