Change max image3d dimensions for gen8

- gen8 has lower max image 3d height and width

Change-Id: Ibe94a24cba488a5ebf582992a5f7a4d5bad801f8
This commit is contained in:
Hoppe, Mateusz
2018-02-19 09:50:17 +01:00
committed by sys_ocldev
parent f43a04d3b2
commit 1207da92a3
15 changed files with 130 additions and 11 deletions

View File

@ -189,9 +189,6 @@ TEST(Device_GetCaps, validate) {
EXPECT_EQ(1u, caps.imageSupport);
EXPECT_EQ(16384u, caps.image2DMaxWidth);
EXPECT_EQ(16384u, caps.image2DMaxHeight);
EXPECT_EQ(16384u, caps.image3DMaxWidth);
EXPECT_EQ(2048u, caps.image3DMaxDepth);
EXPECT_EQ(16384u, caps.image3DMaxHeight);
EXPECT_EQ(2048u, caps.imageMaxArraySize);
if (device->getHardwareInfo().capabilityTable.clVersionSupport == 12 && is32BitOsAllocatorAvailable) {
EXPECT_TRUE(caps.force32BitAddressess);
@ -200,6 +197,21 @@ TEST(Device_GetCaps, validate) {
}
}
TEST(Device_GetCaps, validateImage3DDimensions) {
auto device = std::unique_ptr<Device>(DeviceHelper<>::create(platformDevices[0]));
const auto &caps = device->getDeviceInfo();
if (device->getHardwareInfo().pPlatform->eRenderCoreFamily > IGFX_GEN8_CORE) {
EXPECT_EQ(16384u, caps.image3DMaxWidth);
EXPECT_EQ(16384u, caps.image3DMaxHeight);
} else {
EXPECT_EQ(2048u, caps.image3DMaxWidth);
EXPECT_EQ(2048u, caps.image3DMaxHeight);
}
EXPECT_EQ(2048u, caps.image3DMaxDepth);
}
TEST(DeviceGetCapsSimple, givenDeviceWhenEUCountIsZeroThenmaxWgsIsDefault) {
auto hardwareInfo = hardwareInfoTable[productFamily];
GT_SYSTEM_INFO sysInfo = *hardwareInfo->pSysInfo;