P4 to Git Change 1310350 by lmoriche@lmoriche_opencl_dev on 2016/09/02 12:29:12

SWDEV-101853 - Use the PointeeAlignment metadata to align the dynamic LDS allocations at dispatch.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.hpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#11 edit


[ROCm/clr commit: b581f2510b]
This commit is contained in:
foreman
2016-09-02 12:33:55 -04:00
förälder 0af3db0c1e
incheckning f90f49613f
3 ändrade filer med 16 tillägg och 3 borttagningar
@@ -124,7 +124,7 @@ namespace code {
namespace KernelArg {
using namespace AMDGPU::RuntimeMD::KernelArg;
Metadata::Metadata()
: size(0), align(0),
: size(0), align(0), pointeeAlign(0),
isConst(false), isRestrict(false), isVolatile(false), isPipe(false)
{}
@@ -177,6 +177,7 @@ namespace code {
case KeyArgName: return Read(in, name);
case KeyArgTypeKind: return Read(in, typeKind);
case KeyArgValueType: return Read(in, valueType);
case KeyArgPointeeAlign: return Read(in, pointeeAlign);
case KeyArgAddrQual: return Read(in, addrQual);
case KeyArgAccQual: return Read(in, accQual);
case KeyArgIsConst: isConst = true; return true;
@@ -261,6 +262,7 @@ namespace code {
case KeyArgName:
case KeyArgTypeKind:
case KeyArgValueType:
case KeyArgPointeeAlign:
case KeyArgAddrQual:
case KeyArgAccQual:
case KeyArgIsConst:
@@ -424,6 +426,7 @@ namespace code {
case KeyArgName:
case KeyArgTypeKind:
case KeyArgValueType:
case KeyArgPointeeAlign:
case KeyArgAddrQual:
case KeyArgAccQual:
case KeyArgIsConst: