mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 07:30:09 +01:00
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>
This commit is contained in:
parent
d8325f1f07
commit
eb0034fe28
1 changed files with 2 additions and 1 deletions
|
|
@ -932,7 +932,8 @@ radv_image_can_enable_fmask(struct radv_image *image)
|
|||
static inline bool
|
||||
radv_image_can_enable_htile(struct radv_image *image)
|
||||
{
|
||||
return image->info.levels == 1 &&
|
||||
return radv_image_has_htile(image) &&
|
||||
image->info.levels == 1 &&
|
||||
vk_format_is_depth(image->vk_format) &&
|
||||
image->info.width * image->info.height >= 8 * 8;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue