mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Change max image3d dimensions for gen8
- gen8 has lower max image 3d height and width Change-Id: Ibe94a24cba488a5ebf582992a5f7a4d5bad801f8
This commit is contained in:

committed by
sys_ocldev

parent
f43a04d3b2
commit
1207da92a3
@ -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;
|
||||
|
Reference in New Issue
Block a user