radv: don't check for linear images in emit_fast_color_clear()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Jun 2018 13:53:23 +0000 (15:53 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 15 Jun 2018 13:54:12 +0000 (15:54 +0200)
We don't enable CMASK for linear surfaces and addrlib only
enables DCC for tiling surfaces.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_clear.c

index 5303a1c9fc26b0acdee890b2c4a6b5690ade208f..21c950c7823f0635e4a60244e7e6f784a384e0d3 100644 (file)
@@ -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;