From: Samuel Pitoiset Date: Fri, 15 Jun 2018 13:53:23 +0000 (+0200) Subject: radv: don't check for linear images in emit_fast_color_clear() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2f6e72138422aa688b53f55892bdd37f73a0423;p=mesa.git radv: don't check for linear images in emit_fast_color_clear() We don't enable CMASK for linear surfaces and addrlib only enables DCC for tiling surfaces. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 5303a1c9fc2..21c950c7823 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -1020,8 +1020,6 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer, if (iview->image->info.levels > 1) goto fail; - if (iview->image->surface.is_linear) - goto fail; if (!radv_image_extent_compare(iview->image, &iview->extent)) goto fail;