[Mesa-dev] [PATCH] radv/gfx9: for fast clear use is_linear flag.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Tue Aug 15 20:08:36 UTC 2017
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Tue, Aug 15, 2017, at 21:55, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> The legacy test won't work on gfx9.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/amd/vulkan/radv_meta_clear.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_meta_clear.c
> b/src/amd/vulkan/radv_meta_clear.c
> index e3d823fb58..af76a517aa 100644
> --- a/src/amd/vulkan/radv_meta_clear.c
> +++ b/src/amd/vulkan/radv_meta_clear.c
> @@ -979,7 +979,7 @@ emit_fast_color_clear(struct radv_cmd_buffer
> *cmd_buffer,
> if (iview->image->info.levels > 1)
> goto fail;
>
> - if (iview->image->surface.u.legacy.level[0].mode <
> RADEON_SURF_MODE_1D)
> + if (iview->image->surface.is_linear)
> goto fail;
> if (!radv_image_extent_compare(iview->image, &iview->extent))
> goto fail;
> --
> 2.13.5
>
> _______________________________________________
> 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