From 694d59fbaf4bc85daaff6cc411162dd6d1232968 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 15 Aug 2017 15:28:09 +1000 Subject: 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 --- 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 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; -- cgit v1.2.3