Mesa (master): radv: Disable HTILE for textures with multiple layers/ levels.

Bas Nieuwenhuizen bnieuwenhuizen at kemper.freedesktop.org
Mon Mar 6 23:00:36 UTC 2017


Module: Mesa
Branch: master
Commit: 0ab2dd361fd80c3840b1547cb7e05b4361eaf928
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ab2dd361fd80c3840b1547cb7e05b4361eaf928

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Mon Mar  6 23:23:57 2017 +0100

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 <basni at google.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>
CC: 13.0 17.0 <mesa-stable at lists.freedesktop.org>

---

 src/amd/vulkan/radv_image.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 461d668..b71d8b7 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)




More information about the mesa-commit mailing list