mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 02:40:11 +01:00
radv: Enable linear sampling for depth textures.
Turns out there are CTS tests. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4258 Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9319>
This commit is contained in:
parent
56bff270fe
commit
0360ecac73
1 changed files with 3 additions and 0 deletions
|
|
@ -718,6 +718,9 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
|
|||
if (radv_is_filter_minmax_format_supported(format))
|
||||
tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT;
|
||||
|
||||
if (vk_format_is_depth(format))
|
||||
tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
||||
|
||||
/* Don't support blitting surfaces with depth/stencil. */
|
||||
if (vk_format_is_depth(format) && vk_format_is_stencil(format))
|
||||
tiled &= ~VK_FORMAT_FEATURE_BLIT_DST_BIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue