Skip to content

Commit 0dec2ab

Browse files
dayatsin-amdCopilot
andcommitted
Update runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Yat Sin, David <David.YatSin@amd.com>
1 parent d3f7091 commit 0dec2ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ hsa_status_t BlitSdma<useGCR>::SubmitCommand(const void* cmd, size_t cmd_size, u
340340
// Add space for acquire or release Hdp flush command
341341
uint32_t flush_cmd_size = 0;
342342
if (core::Runtime::runtime_singleton_->flag().enable_sdma_hdp_flush()) {
343-
if (hdp_flush_support_) flush_cmd_size = flush_command_size_;
343+
if (hdp_flush_support_) {
344+
flush_cmd_size = flush_command_size_;
345+
}
344346
}
345347

346348
// Add space for cache flush.

0 commit comments

Comments
 (0)