radv: remove useless check in radv_set_depth_clear_regs()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Nov 2017 14:43:58 +0000 (15:43 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Nov 2017 09:45:19 +0000 (10:45 +0100)
aspects can't be zero and there is an assertion that ensures
it's not in emit_clear().

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

index 5f025d657c7cb133333ce66ba26f7b4f489bb7c1..04b8147df8ac9f538f0e5c9604aed5e0c34f4648 100644 (file)
@@ -1297,7 +1297,7 @@ radv_set_depth_clear_regs(struct radv_cmd_buffer *cmd_buffer,
        va += image->offset + image->clear_value_offset;
        unsigned reg_offset = 0, reg_count = 0;
 
-       if (!image->surface.htile_size || !aspects)
+       if (!image->surface.htile_size)
                return;
 
        if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) {