[Mesa-dev] [PATCH 4/4] radv: simplify a condition in radv_src_access_flush()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Jul 18 14:19:07 UTC 2018
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_cmd_buffer.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index b67f0ffdbe..4a6b5fdcd9 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -1970,10 +1970,12 @@ radv_src_access_flush(struct radv_cmd_buffer *cmd_buffer,
enum radv_cmd_flush_bits flush_bits = 0;
uint32_t b;
- if (image && !radv_image_has_CB_metadata(image))
- flush_CB_meta = false;
- if (image && !radv_image_has_htile(image))
- flush_DB_meta = false;
+ if (image) {
+ if (!radv_image_has_CB_metadata(image))
+ flush_CB_meta = false;
+ if (!radv_image_has_htile(image))
+ flush_DB_meta = false;
+ }
for_each_bit(b, src_flags) {
switch ((VkAccessFlagBits)(1 << b)) {
--
2.18.0
More information about the mesa-dev
mailing list