-
Enable filtering depth+stencil formats · 110236f3Alexis Hetu authored
This is a follow-up to this cl: https://swiftshader-review.googlesource.com/c/SwiftShader/+/39748 where filtering was enabled for depth only formats. According to the Vulkan spec (about VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT): "If the format being queried is a depth/stencil format, this bit only specifies that the depth aspect (not the stencil aspect) of an image of this format supports linear filtering, and that linear filtering of the depth aspect is supported whether depth compare is enabled in the sampler or not. If this bit is not present, linear filtering with depth compare disabled is unsupported and linear filtering with depth compare enabled is supported, but may compute the filtered value in an implementation-dependent manner which differs from the normal rules of linear filtering. The resulting value must be in the range [0,1] and should be proportional to, or a weighted average of, the number of comparison passes or failures." So VK_FORMAT_D32_SFLOAT_S8_UINT can be added to the list of filterable formats, since VK_FORMAT_D32_SFLOAT is already supported. Change-Id: Ida83c2630c920f3dc2c3e17853dfe91c835a4b7f Tests: dEQP-VK.*d32_sfloat_s8_uint* Bug: b/146563038 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40028 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
110236f3
×