diff options
author | Samuel Pitoiset <[email protected]> | 2018-11-23 17:04:13 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-11-29 10:18:42 +0100 |
commit | f78ee19702caddde5cd1b218f6324e4e02fd5fa2 (patch) | |
tree | 745be01a05d4b3cf697f955be2494042c2e4054f /src/amd/vulkan/radv_meta_clear.c | |
parent | eca931a7263fac06dd73be6901b2e6571d9a5026 (diff) |
radv: simplify a check in emit_fast_color_clear()
Currently only true if RADV_PERFTEST=dccmsaa is set.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_clear.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_clear.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 6c8ef4958f2..37b743e994a 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -1483,9 +1483,7 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer, &clear_value, &reset_value, &can_avoid_fast_clear_elim); - if (iview->image->info.samples > 1) { - assert(radv_image_has_cmask(iview->image)); - + if (radv_image_has_cmask(iview->image)) { flush_bits = radv_clear_cmask(cmd_buffer, iview->image, cmask_clear_value); |