[Mesa-dev] [PATCH 5/7] radv: simplify a check in emit_fast_color_clear()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Nov 23 16:04:13 UTC 2018
Currently only true if RADV_PERFTEST=dccmsaa is set.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_meta_clear.c | 4 +---
1 file changed, 1 insertion(+), 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);
--
2.19.1
More information about the mesa-dev
mailing list