Fix SDMA fill for >=4MB regions

max_single_fill_size_ overflowed the packet field size. Reduce by one dword.

[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1259263]


[ROCm/ROCR-Runtime commit: 1d4a257225]
このコミットが含まれているのは:
Jay Cornwall (xN/A) UK
2016-04-18 16:05:13 -05:00
コミット def38e14f3
+1 -1
ファイルの表示
@@ -366,7 +366,7 @@ hsa_status_t BlitSdma::Initialize(const core::Agent& agent) {
static_cast<uint64_t>(max_num_copy_command) *
static_cast<uint64_t>(max_single_linear_copy_size_)));
max_single_fill_size_ = 1 << 22;
max_single_fill_size_ = (1 << 22) - sizeof(uint32_t);
max_total_fill_size_ = static_cast<size_t>(
std::min(static_cast<uint64_t>(SIZE_MAX),
static_cast<uint64_t>(max_num_fill_command) *