Compute size of command buffer based on support for HDP Flush

Change-Id: I4987a262c191a91cd845fe18002c314a95a9ed8c


[ROCm/ROCR-Runtime commit: f25d59cab2]
이 커밋은 다음에 포함됨:
Ramesh Errabolu가 2018-04-07 13:36:09 -04:00를 커밋했습니다
1 부모 2b15fedb50
커밋 f081e81976
1 파일이 변경됨
+3 -3
+3 -3
파일 보기
@@ -549,7 +549,7 @@ hsa_status_t BlitSdma<RingIndexTy, HwIndexMonotonic, SizeToCountOffset>::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<RingIndexTy, HwIndexMonotonic, SizeToCountOffset>::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<RingIndexTy, HwIndexMonotonic, SizeToCountOffset>::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_;
}
}