aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_image.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-03-07 01:07:02 +0100
committerBas Nieuwenhuizen <[email protected]>2017-03-07 09:58:33 +0100
commit6424795f527826fab49564cd29d65806c6924ab6 (patch)
tree4ef5bbdeead8dab02647109fa8b75a53d05f6379 /src/amd/vulkan/radv_image.c
parent3b455c1cb740c0357a0e748114b2c3b03d2dc4e2 (diff)
radv: Use the subresource range in HTILE initialization.
v2: fix levelCount assert. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r--src/amd/vulkan/radv_image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 3d650b02716..dfd70a9eab8 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -590,8 +590,7 @@ static void
radv_image_alloc_htile(struct radv_device *device,
struct radv_image *image)
{
- if ((device->debug_flags & RADV_DEBUG_NO_HIZ) || image->layers > 1 ||
- image->levels > 1) {
+ if ((device->debug_flags & RADV_DEBUG_NO_HIZ) || image->levels > 1) {
image->surface.htile_size = 0;
return;
}