From: Dave Airlie Date: Tue, 15 Aug 2017 05:28:09 +0000 (+1000) Subject: radv/gfx9: for fast clear use is_linear flag. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=694d59fbaf4bc85daaff6cc411162dd6d1232968;p=mesa.git radv/gfx9: for fast clear use is_linear flag. The legacy test won't work on gfx9. Reviewed-by: Bas Nieuwenhuizen Cc: "17.2" Signed-off-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index e3d823fb58a..af76a517aaf 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;