aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_formats.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-06-17 21:46:35 +0200
committerBas Nieuwenhuizen <[email protected]>2019-06-18 01:00:49 +0200
commit925c04b4c78fcafc345e3f80b17ef3417451e656 (patch)
tree81d767a674209deb6f600680db737db754c21fea /src/amd/vulkan/radv_formats.c
parent1be38f9178a2382aa9f785845456cd8893f10e17 (diff)
radv: Disable linear tiled compressed textures.
Support got removed in the new addrlib update. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_formats.c')
-rw-r--r--src/amd/vulkan/radv_formats.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index e61d793e7f2..2e0a140d395 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -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;