nvk: Enable ASTC on Tegra

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38163>
This commit is contained in:
Faith Ekstrand
2025-10-29 22:09:05 -04:00
committed by Marge Bot
parent f7412bd229
commit ba2645bc6d
+9 -1
View File
@@ -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,