Module: Mesa
Branch: master
Commit: 0360ecac73f9afee9875b3da080a9ed7cde9bb38
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0360ecac73f9afee9875b3da080a9ed7cde9bb38

Author: Bas Nieuwenhuizen <[email protected]>
Date:   Sun Feb 28 03:09:48 2021 +0100

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9319>

---

 src/amd/vulkan/radv_formats.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index f1c4a36c89e..adcbc3c7eed 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to