From f7053598c519760ed04a2d7dc26615d8446b8cfa Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Thu, 14 Oct 2021 11:46:32 -0400 Subject: [PATCH] SWDEV-232903 - Adding string to guarantee message, which is required on windows. Change-Id: I86d3d53126aa4baa1ffc27295e4f908ac7028551 [ROCm/clr commit: 5a33a15c42d60e9a59f6ad1a49dd674b66ddd0ec] --- projects/clr/rocclr/device/blit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/clr/rocclr/device/blit.cpp b/projects/clr/rocclr/device/blit.cpp index 8ae03f3da0..2798ff9719 100644 --- a/projects/clr/rocclr/device/blit.cpp +++ b/projects/clr/rocclr/device/blit.cpp @@ -746,7 +746,7 @@ bool HostBlitManager::FillBufferInfo::PackInfo(const device::Memory& memory, siz FillBufferInfo fill_info; if (head_size > 0) { // Offsetted ptrs should align with pattern size. Runtime not responsible for rotating pattern. - guarantee((head_size % pattern_size) == 0); + guarantee((head_size % pattern_size) == 0, "Offseted ptr should align with pattern_size"); fill_info.fill_size_ = head_size; packed_info.push_back(fill_info); @@ -755,7 +755,7 @@ bool HostBlitManager::FillBufferInfo::PackInfo(const device::Memory& memory, siz fill_info.clearInfo(); if (aligned_size > 0) { // Offsetted ptrs should align with pattern size. Runtime not responsible for rotating pattern. - guarantee((aligned_size % pattern_size) == 0); + guarantee((aligned_size % pattern_size) == 0, "Offseted ptr should align with pattern_size"); if (pattern_size < sizeof(size_t)) { if (!ExpandPattern64(pattern, pattern_size, fill_info.expanded_pattern_)) { @@ -772,7 +772,7 @@ bool HostBlitManager::FillBufferInfo::PackInfo(const device::Memory& memory, siz if (tail_size > 0) { // Offsetted ptrs should align with pattern size. Runtime not responsible for rotating pattern. - guarantee((tail_size % pattern_size) == 0); + guarantee((tail_size % pattern_size) == 0, "Offseted ptr should align with pattern_size"); fill_info.fill_size_ = tail_size; packed_info.push_back(fill_info);