nvk: Check before claiming UNIFORM_TEXEL_BUFFER_BIT

This is a no-op right now because NIL never claims buffer support on
anything that can't support texturing.  That will change in the next
commit.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Acked-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39135>
This commit is contained in:
Faith Ekstrand 2026-01-02 15:47:02 -05:00 committed by Marge Bot
parent 5a917f035c
commit 26c50cb7ff

View file

@ -26,7 +26,8 @@ nvk_get_buffer_format_features(const struct nvk_physical_device *pdev,
enum pipe_format p_format = nvk_format_to_pipe_format(vk_format);
if (nil_format_supports_buffer(&pdev->info, p_format)) {
features |= VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT;
if (nil_format_supports_texturing(&pdev->info, p_format))
features |= VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT;
if (nvk_format_supports_storage(pdev, p_format)) {
features |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT |