From 353a018bce20b9e96611ceccf4265dcaf07548d1 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Mon, 9 Nov 2020 15:29:29 -0500 Subject: [PATCH] [PAL] Report actual HW limits for max image buffer size Change-Id: I62aa3f1e9709b91ba223af0abf8bf6395fe8ec59 --- rocclr/device/pal/paldefs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/device/pal/paldefs.hpp b/rocclr/device/pal/paldefs.hpp index 9dcc92c61f..878308c25e 100644 --- a/rocclr/device/pal/paldefs.hpp +++ b/rocclr/device/pal/paldefs.hpp @@ -110,7 +110,7 @@ static constexpr uint MaxConstArguments = 8; //! Maximum number of supported kernel UAV arguments static constexpr uint MaxUavArguments = 1024; //! Maximum number of pixels for a 1D image created from a buffer -static constexpr size_t MaxImageBufferSize = 1 << 27; +static constexpr size_t MaxImageBufferSize = (1ull << 32) - 1; //! Maximum number of pixels for a 1D image created from a buffer static constexpr size_t MaxImageArraySize = 2048;