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>
This commit is contained in:
Yat Sin, David
2025-07-08 21:33:54 -04:00
parent d3f70910e1
commit 0dec2ab43b
@@ -340,7 +340,9 @@ hsa_status_t BlitSdma<useGCR>::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.