Removing address space qualifiers from literals

Change-Id: Iffdc5a8d98f37a3df930d67c39f771c89b24f47c
This commit is contained in:
Chodor, Jaroslaw
2019-01-25 16:11:28 +01:00
committed by sys_ocldev
parent 15d6b24ede
commit 9d8f280d5c
5 changed files with 7 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ __kernel void CopyBufferToImage3dBytes(__global uchar *src,
int4 dstCoord = (int4)(x, y, z, 0) + dstOffset;
uint LOffset = srcOffset + (y * Pitch.x) + (z * Pitch.y);
write_imageui(output, dstCoord, (__global uint4)(*(src + LOffset + x), 0, 0, 1));
write_imageui(output, dstCoord, (uint4)(*(src + LOffset + x), 0, 0, 1));
}
__kernel void CopyBufferToImage3d2Bytes(__global uchar *src,
@@ -124,7 +124,7 @@ __kernel void CopyBufferToImage3d8Bytes(__global uchar *src,
c = *((__global uint2*)(src + LOffset + x * 8));
}
write_imageui(output, dstCoord, (__global uint4)(c.x, c.y, 0, 1));
write_imageui(output, dstCoord, (uint4)(c.x, c.y, 0, 1));
}
__kernel void CopyBufferToImage3d16Bytes(__global uchar *src,

View File

@@ -13,7 +13,7 @@
extern PRODUCT_FAMILY productFamily;
const std::string KernelBinaryHelper::BUILT_INS("12523835541146349626");
const std::string KernelBinaryHelper::BUILT_INS("7030307152995455603");
KernelBinaryHelper::KernelBinaryHelper(const std::string &name, bool appendOptionsToFileName) {
// set mock compiler to return expected kernel

View File

@@ -386,8 +386,8 @@ int main(int argc, char **argv) {
MockCompilerDebugVars fclDebugVars;
MockCompilerDebugVars igcDebugVars;
retrieveBinaryKernelFilename(fclDebugVars.fileName, "12523835541146349626_", ".bc");
retrieveBinaryKernelFilename(igcDebugVars.fileName, "12523835541146349626_", ".gen");
retrieveBinaryKernelFilename(fclDebugVars.fileName, "7030307152995455603_", ".bc");
retrieveBinaryKernelFilename(igcDebugVars.fileName, "7030307152995455603_", ".gen");
gEnvironment->setMockFileNames(fclDebugVars.fileName, igcDebugVars.fileName);
gEnvironment->setDefaultDebugVars(fclDebugVars, igcDebugVars, device);

View File

@@ -231,7 +231,7 @@ __kernel void CopyBufferToImage3dBytes(__global uchar *src,
int4 dstCoord = (int4)(x, y, z, 0) + dstOffset;
uint LOffset = srcOffset + (y * Pitch.x) + (z * Pitch.y);
write_imageui(output, dstCoord, (__global uint4)(*(src + LOffset + x), 0, 0, 1));
write_imageui(output, dstCoord, (uint4)(*(src + LOffset + x), 0, 0, 1));
}
__kernel void CopyBufferToImage3d2Bytes(__global uchar *src,
@@ -320,7 +320,7 @@ __kernel void CopyBufferToImage3d8Bytes(__global uchar *src,
c = *((__global uint2*)(src + LOffset + x * 8));
}
write_imageui(output, dstCoord, (__global uint4)(c.x, c.y, 0, 1));
write_imageui(output, dstCoord, (uint4)(c.x, c.y, 0, 1));
}
__kernel void CopyBufferToImage3d16Bytes(__global uchar *src,