From 624f331317b51162e9c9552c2b4c41e66c201776 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 26 May 2016 16:52:31 -0400
Subject: [PATCH] P4 to Git Change 1273526 by gandryey@gera-w8 on 2016/05/26
16:39:29
SWDEV-94881 - [OpenCL]increasing the size limit of image buffer to 2^27 which is for the moment at 65536
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#136 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#3 edit
---
rocclr/runtime/device/gpu/gpudefs.hpp | 2 +-
rocclr/runtime/device/pal/paldefs.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rocclr/runtime/device/gpu/gpudefs.hpp b/rocclr/runtime/device/gpu/gpudefs.hpp
index 56f92dd906..1dffd50ff5 100644
--- a/rocclr/runtime/device/gpu/gpudefs.hpp
+++ b/rocclr/runtime/device/gpu/gpudefs.hpp
@@ -38,7 +38,7 @@ const static uint MaxConstArguments = 8;
//! Maximum number of supported kernel UAV arguments
const static uint MaxUavArguments = 1024;
//! Maximum number of pixels for a 1D image created from a buffer
-const static size_t MaxImageBufferSize = 65536;
+const static size_t MaxImageBufferSize = 1 << 27;
//! Maximum number of pixels for a 1D image created from a buffer
const static size_t MaxImageArraySize = 2048;
diff --git a/rocclr/runtime/device/pal/paldefs.hpp b/rocclr/runtime/device/pal/paldefs.hpp
index 16f7284913..72054005f8 100644
--- a/rocclr/runtime/device/pal/paldefs.hpp
+++ b/rocclr/runtime/device/pal/paldefs.hpp
@@ -88,7 +88,7 @@ const static uint MaxConstArguments = 8;
//! Maximum number of supported kernel UAV arguments
const static uint MaxUavArguments = 1024;
//! Maximum number of pixels for a 1D image created from a buffer
-const static size_t MaxImageBufferSize = 65536;
+const static size_t MaxImageBufferSize = 1 << 27;
//! Maximum number of pixels for a 1D image created from a buffer
const static size_t MaxImageArraySize = 2048;