[Mesa-dev] [PATCH 2/2] radv: don't check if format is depth in radv_image_can_enable_hile()

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Dec 12 20:45:14 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

for both.
On Wed, Dec 12, 2018 at 2:13 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> This is always TRUE if htile_size is not 0.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_image.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index b1044639fdf..9b7564985a6 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -933,7 +933,6 @@ radv_image_can_enable_htile(struct radv_image *image)
>  {
>         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;
>  }
>
> --
> 2.20.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list