From 944ef1771e19b2eb5b0ffc8017652a155a4838e4 Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Wed, 21 Feb 2024 10:30:10 -0800 Subject: [PATCH] nvk: disable shaderResourceMinLod on pre-sm70 The hardware's TEX instruction doesn't support this when using indirect texture access, which we're currently using for everything. Part-of: --- src/nouveau/vulkan/nvk_physical_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index 8242c75452e..aceb35460d7 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -263,7 +263,7 @@ nvk_get_device_features(const struct nv_device_info *info, .shaderInt64 = true, .shaderInt16 = true, /* TODO: shaderResourceResidency */ - .shaderResourceMinLod = true, + .shaderResourceMinLod = info->cls_eng3d >= VOLTA_A, .sparseBinding = true, .sparseResidencyBuffer = info->cls_eng3d >= MAXWELL_A, /* TODO: sparseResidency* */