radv: check if addrlib enabled HTILE in radv_image_can_enable_htile()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Dec 2018 13:15:52 +0000 (14:15 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Dec 2018 08:21:19 +0000 (09:21 +0100)
commiteb0034fe285c242a7fcf0c97aa67916c984594ec
treeacbba040f5abb24e6f196713deb51387e7bb71ec
parentd8325f1f07b67c8a31c6786c71e3fd0910bc3b82
radv: check if addrlib enabled HTILE in radv_image_can_enable_htile()

When hile_size is 0, we can't enable HTILE. This doesn't change
anything, except not calling radv_image_alloc_htile().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c