summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_image.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-03-06 23:23:57 +0100
committerEmil Velikov <[email protected]>2017-03-16 01:34:00 +0000
commita342a47a24a331e3b4e65d21cbdf6e89f8dac7cf (patch)
tree085f620248f1c0005fcbce64aac54e7a8b16a537 /src/amd/vulkan/radv_image.c
parentf21cc864ba3135d7b8e6eff054b80d5f86543c61 (diff)
radv: Disable HTILE for textures with multiple layers/levels.
It has issues and the fix I'm working on is too complicated for stable, so disable for now. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]> CC: 13.0 17.0 <[email protected]> (cherry picked from commit 0ab2dd361fd80c3840b1547cb7e05b4361eaf928)
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r--src/amd/vulkan/radv_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index d30a68e56cf..4a95a79a45a 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -655,6 +655,9 @@ radv_image_alloc_htile(struct radv_device *device,
if (device->debug_flags & RADV_DEBUG_NO_HIZ)
return;
+ if (image->array_size > 1 || image->levels > 1)
+ return;
+
image->htile.size = radv_image_get_htile_size(device, image);
if (!image->htile.size)