radv: Disable linear tiled compressed textures.

Submitted by Bas Nieuwenhuizen on June 17, 2019, 7:47 p.m.

Details

Message ID 20190617194713.44835-1-bas@basnieuwenhuizen.nl
State New
Headers show
Series "radv: Disable linear tiled compressed textures." ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Bas Nieuwenhuizen June 17, 2019, 7:47 p.m.
Support got removed in the new addrlib update.
---
 src/amd/vulkan/radv_formats.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index e61d793e7f2..e8470a1622e 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -774,6 +774,9 @@  radv_physical_device_get_format_properties(struct radv_physical_device *physical
 		break;
 	}
 
+	if (vk_format_is_compressed(format))
+		linear = 0;
+
 	out_properties->linearTilingFeatures = linear;
 	out_properties->optimalTilingFeatures = tiled;
 	out_properties->bufferFeatures = buffer;