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 bab08c6598..9a52948f1a 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 @@ -549,7 +549,7 @@ hsa_status_t BlitSdma::SubmitL // 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 (HwIndexMonotonic) { + if ((HwIndexMonotonic) && (hdp_flush_support_)) { flush_cmd_size = flush_command_size_; } } @@ -657,7 +657,7 @@ hsa_status_t BlitSdma::SubmitL // 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 (HwIndexMonotonic) { + if ((HwIndexMonotonic) && (hdp_flush_support_)) { flush_cmd_size = flush_command_size_; } } @@ -772,7 +772,7 @@ hsa_status_t BlitSdma::SubmitL // 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 (HwIndexMonotonic) { + if ((HwIndexMonotonic) && (hdp_flush_support_)) { flush_cmd_size = flush_command_size_; } }