[Mesa-dev] [PATCH 6/8] radv: Only flush for the needed stages, and before the flushes.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Thu Mar 9 01:07:32 UTC 2017
Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
---
src/amd/vulkan/radv_cmd_buffer.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 5d4236ca187..274495f134f 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -2928,6 +2928,7 @@ void radv_CmdPipelineBarrier(
image);
}
+ radv_stage_flush(cmd_buffer, srcStageMask);
cmd_buffer->state.flush_bits |= src_flush_bits;
for (uint32_t i = 0; i < imageMemoryBarrierCount; i++) {
@@ -2942,12 +2943,6 @@ void radv_CmdPipelineBarrier(
}
cmd_buffer->state.flush_bits |= dst_flush_bits;
-
- /* TODO reduce this */
- enum radv_cmd_flush_bits flush_bits = RADV_CMD_FLAG_CS_PARTIAL_FLUSH |
- RADV_CMD_FLAG_PS_PARTIAL_FLUSH;
-
- cmd_buffer->state.flush_bits |= flush_bits;
}
--
2.11.1
More information about the mesa-dev
mailing list