Vulkan: Limit clampFragDepth workaround to affected drivers

Bug: angleproject:3970
Change-Id: I708591d86b8f2cb10d0cbdc7c14518fda45ac626
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4562134
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Alexey Knyazev <lexa.knyazev@gmail.com>
This commit is contained in:
Alexey Knyazev
2023-05-24 00:00:00 +00:00
committed by Angle LUCI CQ
parent 7e2336b1e8
commit 33e3886213
5 changed files with 19 additions and 3 deletions

View File

@@ -62,6 +62,11 @@ struct FeaturesVk : FeatureSetBase
"VkDevice supports the VK_EXT_depth_clamp_zero_one extension", &members,
"http://anglebug.com/3970"};
FeatureInfo clampFragDepth = {"clampFragDepth", FeatureCategory::VulkanWorkarounds,
"gl_FragDepth is not clamped when rendering to a floating point "
"depth buffer without VK_EXT_depth_clamp_zero_one",
&members, "http://anglebug.com/3970"};
FeatureInfo mutableMipmapTextureUpload = {
"mutableMipmapTextureUpload", FeatureCategory::VulkanFeatures,
"Enable uploading the previously defined mutable mipmap texture.", &members,

View File

@@ -60,6 +60,14 @@
],
"issue": "http://anglebug.com/3970"
},
{
"name": "clamp_frag_depth",
"category": "Workarounds",
"description": [
"gl_FragDepth is not clamped when rendering to a floating point depth buffer without VK_EXT_depth_clamp_zero_one"
],
"issue": "http://anglebug.com/3970"
},
{
"name": "mutable_mipmap_texture_upload",
"category": "Features",