From 49ab7a188f085957e8e463e616730a69c7703bf3 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Tue, 14 Mar 2023 15:50:26 +0000 Subject: [PATCH] SWDEV-387958 - Fix incorrect slicePitch for ImageGL Change-Id: I06183deeeed840f345ba988ecdbf4dc442c3c78a [ROCm/clr commit: 5ee9e6c8c14c1a078c9a335d2eae486f41daccca] --- projects/clr/hipamd/src/cl_gl_amd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/cl_gl_amd.hpp b/projects/clr/hipamd/src/cl_gl_amd.hpp index 625082c8f9..b804ba0ff0 100644 --- a/projects/clr/hipamd/src/cl_gl_amd.hpp +++ b/projects/clr/hipamd/src/cl_gl_amd.hpp @@ -175,7 +175,7 @@ public: GLenum glCubemapFace = 0) : Image(amdContext, clType, clFlags, format, width, height, depth, Format(format).getElementSize() * width, - Format(format).getElementSize() * width * depth) + Format(format).getElementSize() * width * height) , GLObject(glTarget, gluiName, gliMipLevel, glInternalFormat, static_cast(width), static_cast(height), static_cast(depth), clGLType, glCubemapFace,numSamples)