From 90153e90e1ab2af22b263576625a64751f43614e Mon Sep 17 00:00:00 2001 From: "Yat Sin, David" Date: Tue, 8 Jul 2025 21:33:54 -0400 Subject: [PATCH] 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 [ROCm/ROCR-Runtime commit: 0dec2ab43b26c72b8dacbd3b9e3afcb4bf06dcbe] --- .../runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp index 0875994cbb..18a027632f 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp @@ -340,7 +340,9 @@ hsa_status_t BlitSdma::SubmitCommand(const void* cmd, size_t cmd_size, u // Add space for acquire or release Hdp flush command uint32_t flush_cmd_size = 0; if (core::Runtime::runtime_singleton_->flag().enable_sdma_hdp_flush()) { - if (hdp_flush_support_) flush_cmd_size = flush_command_size_; + if (hdp_flush_support_) { + flush_cmd_size = flush_command_size_; + } } // Add space for cache flush.