From ba2645bc6d67287b4cf8471782d845bb0b24e610 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 29 Oct 2025 22:09:05 -0400 Subject: [PATCH] nvk: Enable ASTC on Tegra Part-of: --- src/nouveau/vulkan/nvk_physical_device.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index a590d715c3f..862058fce93 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -37,6 +37,7 @@ #include "cla0c0.h" #include "cla197.h" #include "cla1c0.h" +#include "cla297.h" #include "clb097.h" #include "clb0c0.h" #include "clb197.h" @@ -97,6 +98,13 @@ nvk_is_conformant(const struct nv_device_info *info) return false; } +static bool +nvk_has_astc(const struct nv_device_info *info) +{ + /* ASTC only exists on Tegra TK1 and later */ + return info->type == NV_DEVICE_TYPE_SOC && info->cls_eng3d >= KEPLER_C; +} + static void nvk_get_device_extensions(const struct nvk_instance *instance, const struct nv_device_info *info, @@ -329,7 +337,7 @@ nvk_get_device_features(const struct nv_device_info *info, .samplerAnisotropy = true, .textureCompressionETC2 = false, .textureCompressionBC = true, - .textureCompressionASTC_LDR = false, + .textureCompressionASTC_LDR = nvk_has_astc(info), .occlusionQueryPrecise = true, .pipelineStatisticsQuery = true, .vertexPipelineStoresAndAtomics = true,