mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
fix: use correct builtin names for heapless
Related-To: NEO-12149 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
de4d67610c
commit
6fc15a1799
@@ -160,7 +160,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d16BytesHeapless:
|
case ImageBuiltin::copyBufferToImage3d16BytesHeapless:
|
||||||
builtinName = "CopyBufferToImage3d16Bytes";
|
builtinName = "CopyBufferToImage3d16BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d2Bytes:
|
case ImageBuiltin::copyBufferToImage3d2Bytes:
|
||||||
@@ -168,7 +168,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d2BytesHeapless:
|
case ImageBuiltin::copyBufferToImage3d2BytesHeapless:
|
||||||
builtinName = "CopyBufferToImage3d2Bytes";
|
builtinName = "CopyBufferToImage3d2BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d4Bytes:
|
case ImageBuiltin::copyBufferToImage3d4Bytes:
|
||||||
@@ -176,7 +176,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d4BytesHeapless:
|
case ImageBuiltin::copyBufferToImage3d4BytesHeapless:
|
||||||
builtinName = "CopyBufferToImage3d4Bytes";
|
builtinName = "CopyBufferToImage3d4BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d8Bytes:
|
case ImageBuiltin::copyBufferToImage3d8Bytes:
|
||||||
@@ -184,7 +184,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3d8BytesHeapless:
|
case ImageBuiltin::copyBufferToImage3d8BytesHeapless:
|
||||||
builtinName = "CopyBufferToImage3d8Bytes";
|
builtinName = "CopyBufferToImage3d8BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3dBytes:
|
case ImageBuiltin::copyBufferToImage3dBytes:
|
||||||
@@ -192,7 +192,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3d;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyBufferToImage3dBytesHeapless:
|
case ImageBuiltin::copyBufferToImage3dBytesHeapless:
|
||||||
builtinName = "CopyBufferToImage3dBytes";
|
builtinName = "CopyBufferToImage3dBytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
builtin = NEO::EBuiltInOps::copyBufferToImage3dHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer16Bytes:
|
case ImageBuiltin::copyImage3dToBuffer16Bytes:
|
||||||
@@ -200,7 +200,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer16BytesHeapless:
|
case ImageBuiltin::copyImage3dToBuffer16BytesHeapless:
|
||||||
builtinName = "CopyImage3dToBuffer16Bytes";
|
builtinName = "CopyImage3dToBuffer16BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer2Bytes:
|
case ImageBuiltin::copyImage3dToBuffer2Bytes:
|
||||||
@@ -208,7 +208,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer2BytesHeapless:
|
case ImageBuiltin::copyImage3dToBuffer2BytesHeapless:
|
||||||
builtinName = "CopyImage3dToBuffer2Bytes";
|
builtinName = "CopyImage3dToBuffer2BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer4Bytes:
|
case ImageBuiltin::copyImage3dToBuffer4Bytes:
|
||||||
@@ -216,7 +216,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer4BytesHeapless:
|
case ImageBuiltin::copyImage3dToBuffer4BytesHeapless:
|
||||||
builtinName = "CopyImage3dToBuffer4Bytes";
|
builtinName = "CopyImage3dToBuffer4BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer8Bytes:
|
case ImageBuiltin::copyImage3dToBuffer8Bytes:
|
||||||
@@ -224,7 +224,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBuffer8BytesHeapless:
|
case ImageBuiltin::copyImage3dToBuffer8BytesHeapless:
|
||||||
builtinName = "CopyImage3dToBuffer8Bytes";
|
builtinName = "CopyImage3dToBuffer8BytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBufferBytes:
|
case ImageBuiltin::copyImage3dToBufferBytes:
|
||||||
@@ -232,7 +232,7 @@ void BuiltinFunctionsLibImpl::initBuiltinImageKernel(ImageBuiltin func) {
|
|||||||
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
builtin = NEO::EBuiltInOps::copyImage3dToBuffer;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImage3dToBufferBytesHeapless:
|
case ImageBuiltin::copyImage3dToBufferBytesHeapless:
|
||||||
builtinName = "CopyImage3dToBufferBytes";
|
builtinName = "CopyImage3dToBufferBytesStateless";
|
||||||
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
builtin = NEO::EBuiltInOps::copyImage3dToBufferHeapless;
|
||||||
break;
|
break;
|
||||||
case ImageBuiltin::copyImageRegion:
|
case ImageBuiltin::copyImageRegion:
|
||||||
|
|||||||
@@ -198,35 +198,35 @@ HWTEST_F(TestBuiltinFunctionsLibImpl, givenHeaplessImageBuiltinsWhenInitBuiltinK
|
|||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d16BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d16BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyBufferToImage3d16Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyBufferToImage3d16BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d2BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d2BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyBufferToImage3d2Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyBufferToImage3d2BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d4BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d4BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyBufferToImage3d4Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyBufferToImage3d4BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d8BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyBufferToImage3d8BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyBufferToImage3dHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyBufferToImage3d8Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyBufferToImage3d8BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBuffer16BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBuffer16BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyImage3dToBuffer16Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyImage3dToBuffer16BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBuffer2BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBuffer2BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyImage3dToBuffer2Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyImage3dToBuffer2BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBuffer4BytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBuffer4BytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyImage3dToBuffer4Bytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyImage3dToBuffer4BytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBufferBytesHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImage3dToBufferBytesHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyImage3dToBufferHeapless, lib.builtinPassed);
|
||||||
EXPECT_STREQ("CopyImage3dToBufferBytes", lib.kernelNamePassed.c_str());
|
EXPECT_STREQ("CopyImage3dToBufferBytesStateless", lib.kernelNamePassed.c_str());
|
||||||
|
|
||||||
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImageRegionHeapless);
|
lib.initBuiltinImageKernel(L0::ImageBuiltin::copyImageRegionHeapless);
|
||||||
EXPECT_EQ(NEO::EBuiltInOps::copyImageToImage3dHeapless, lib.builtinPassed);
|
EXPECT_EQ(NEO::EBuiltInOps::copyImageToImage3dHeapless, lib.builtinPassed);
|
||||||
|
|||||||
Reference in New Issue
Block a user