From ae7ec746695d8daaf6acf228de2e9b877f5e9108 Mon Sep 17 00:00:00 2001 From: Jason Tang Date: Mon, 11 Jan 2021 18:14:22 -0500 Subject: [PATCH] Fix Windows 32bit build Change-Id: Iab4a9a3f15c47d2c13d09ad098c52b21e078fd0a [ROCm/clr commit: 318eecfc87a0f54a31c173a98027888f17e53a7d] --- projects/clr/rocclr/device/pal/paldevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/pal/paldevice.cpp b/projects/clr/rocclr/device/pal/paldevice.cpp index 2f2f7edd6e..1283b2b7a8 100644 --- a/projects/clr/rocclr/device/pal/paldevice.cpp +++ b/projects/clr/rocclr/device/pal/paldevice.cpp @@ -573,7 +573,7 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp, // Clamp max image buffer size to the maximum buffer size we can create. // Image format has max 4 channels per pixel, 1 DWORD per channel. constexpr size_t kPixelRgbaSize = 4 * sizeof(int); - info_.imageMaxBufferSize_ = std::min(MaxImageBufferSize, + info_.imageMaxBufferSize_ = std::min(MaxImageBufferSize, info_.maxMemAllocSize_ / kPixelRgbaSize); info_.image1DMaxWidth_ = maxTextureSize; info_.imageMaxArraySize_ = MaxImageArraySize;