Commit 1f1e0e6c by Kyle Griffiths Committed by Angle LUCI CQ

Remove linear filtering requirement on depth textures

Linear filtering depth is an odd operation that doesn't yield particularly useful information. In the primary instance where it'd be used, the GLES3.1 spec (8.17) specifically denies its use, and enforcing the capability can lead to issues with hardware designed without support in mind. We think the check isn't necessary as a result. Bug: angleproject:5964 Change-Id: I69f243f7cc078cd5383de2cc4bf1cfc3b6f2bc3b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2894424Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent dd312cc6
......@@ -656,7 +656,7 @@ static bool DetermineDepthTextureANGLESupport(const TextureCapsMap &textureCaps)
GL_DEPTH24_STENCIL8_OES,
};
return GetFormatSupport(textureCaps, requiredFormats, true, true, true, false, false);
return GetFormatSupport(textureCaps, requiredFormats, true, false, true, false, false);
}
// Check for GL_OES_depth_texture support
......@@ -667,7 +667,7 @@ static bool DetermineDepthTextureOESSupport(const TextureCapsMap &textureCaps)
GL_DEPTH_COMPONENT32_OES,
};
return GetFormatSupport(textureCaps, requiredFormats, true, true, true, true, false);
return GetFormatSupport(textureCaps, requiredFormats, true, false, true, true, false);
}
// Check for GL_OES_depth24
......
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