aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_image.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-03-06 23:23:57 +0100
committerBas Nieuwenhuizen <[email protected]>2017-03-06 23:58:57 +0100
commit0ab2dd361fd80c3840b1547cb7e05b4361eaf928 (patch)
treefc5da955a087014417d9b62bb206732ae982e7e9 /src/amd/vulkan/radv_image.c
parent6bae1e44a99f909359879951743599e6d6c1cc28 (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]>
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 461d6689c7d..b71d8b75a0b 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)