mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Removing address space qualifiers from literals
Change-Id: Iffdc5a8d98f37a3df930d67c39f771c89b24f47c
This commit is contained in:
committed by
sys_ocldev
parent
15d6b24ede
commit
9d8f280d5c
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
Reference in New Issue
Block a user