radv: Disable linear tiled compressed textures.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 17 Jun 2019 19:46:35 +0000 (21:46 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 17 Jun 2019 23:00:49 +0000 (01:00 +0200)
Support got removed in the new addrlib update.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_formats.c

index e61d793e7f2caab48f143cf959957da07fc8dac8..2e0a140d395e79f5d44721d10885711fe1ac7fb0 100644 (file)
@@ -774,6 +774,10 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
                break;
        }
 
+       /* addrlib does not support linear compressed textures. */
+       if (vk_format_is_compressed(format))
+               linear = 0;
+
        out_properties->linearTilingFeatures = linear;
        out_properties->optimalTilingFeatures = tiled;
        out_properties->bufferFeatures = buffer;