From 752543e0fe400ab17abcfc1fb621708a5f68bf21 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 25 Aug 2026 13:19:05 +0100 Subject: [PATCH] Don't test 1D block compressed textures in vulkan texture zoo --- util/test/demos/vk/vk_texture_zoo.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/util/test/demos/vk/vk_texture_zoo.cpp b/util/test/demos/vk/vk_texture_zoo.cpp index b1971328a..00b2bf577 100644 --- a/util/test/demos/vk/vk_texture_zoo.cpp +++ b/util/test/demos/vk/vk_texture_zoo.cpp @@ -546,8 +546,16 @@ void main() if(vkr != VK_SUCCESS) props3D = {}; - // rendering to depth 3D textures is broken on NV, fixed in a future driver version (guess made, - // will be updated once fix ships) + // hide support for 1D textures on certain formats that are very rarely used and might cause + // problems if the file-loading proxy API doesn't support it. + if(int(f.cfg.type) >= int(TextureType::BC1) && int(f.cfg.type) <= int(TextureType::BC7)) + props1D = {}; + + if(f.cfg.type == TextureType::A8) + props1D = {}; + + // rendering to depth 3D textures is broken on NV, fixed in a future driver version (guess + // made, will be updated once fix ships) if(depth && physProperties.vendorID == PCI_VENDOR_NV && physProperties.driverVersion < VK_MAKE_VERSION_NV(445, 0, 0, 0)) props3D = {};