From 395d8079e6ffb15513dd79ab4826279e5980a84f Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 28 Apr 2025 17:26:53 +0100 Subject: [PATCH] Don't test MSAA with A8_UNORM formats in VK_Texture_Zoo * This is apparently in a format capability class to R8 it seems, and since we don't expect anyone to be rendering to A8 let alone in MSAA, there's no point in testing this. --- util/test/demos/vk/vk_texture_zoo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/test/demos/vk/vk_texture_zoo.cpp b/util/test/demos/vk/vk_texture_zoo.cpp index 1304d2f8a..27c27cd88 100644 --- a/util/test/demos/vk/vk_texture_zoo.cpp +++ b/util/test/demos/vk/vk_texture_zoo.cpp @@ -555,6 +555,9 @@ void main() if(!renderable && !depth) props2D.sampleCounts = VK_SAMPLE_COUNT_1_BIT; + if(f.texFmt == VK_FORMAT_A8_UNORM) + props2D.sampleCounts = VK_SAMPLE_COUNT_1_BIT; + if((props.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT) || depth) { // TODO: disable 1D depth textures for now, we don't support displaying them