Remove not needed code
Change-Id: Idb29d8ad6ca2e8408b2bc69329ac8564dee4e820 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
parent
19de738e03
commit
424de72f38
|
@ -275,26 +275,13 @@ TEST_F(DispatchInfoBuilderTest, WhenGettingLwsThenCorrectValuesAreReturned) {
|
||||||
EXPECT_EQ(1u, dispatchInfo.getLocalWorkgroupSize().z);
|
EXPECT_EQ(1u, dispatchInfo.getLocalWorkgroupSize().z);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t expectedResult[] = {16u, 16u, 1u};
|
|
||||||
const auto &hwInfo = pProgram->getDevice().getHardwareInfo();
|
|
||||||
auto isSimulation = pProgram->getDevice().isSimulation();
|
|
||||||
|
|
||||||
EXPECT_FALSE(isSimulation);
|
|
||||||
|
|
||||||
auto &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
|
||||||
if (hwHelper.isSpecialWorkgroupSizeRequired(hwInfo, isSimulation)) {
|
|
||||||
for (auto &result : expectedResult) {
|
|
||||||
result = 1u;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
diBuilder->setKernel(pKernel);
|
diBuilder->setKernel(pKernel);
|
||||||
diBuilder->setDispatchGeometry(Vec3<size_t>(16, 16, 16), Vec3<size_t>(0, 0, 0), Vec3<size_t>(0, 0, 0));
|
diBuilder->setDispatchGeometry(Vec3<size_t>(16, 16, 16), Vec3<size_t>(0, 0, 0), Vec3<size_t>(0, 0, 0));
|
||||||
diBuilder->bake(mdi3);
|
diBuilder->bake(mdi3);
|
||||||
for (auto &dispatchInfo : mdi3) {
|
for (auto &dispatchInfo : mdi3) {
|
||||||
EXPECT_EQ(expectedResult[0], dispatchInfo.getLocalWorkgroupSize().x);
|
EXPECT_EQ(16u, dispatchInfo.getLocalWorkgroupSize().x);
|
||||||
EXPECT_EQ(expectedResult[1], dispatchInfo.getLocalWorkgroupSize().y);
|
EXPECT_EQ(16u, dispatchInfo.getLocalWorkgroupSize().y);
|
||||||
EXPECT_EQ(expectedResult[2], dispatchInfo.getLocalWorkgroupSize().z);
|
EXPECT_EQ(1u, dispatchInfo.getLocalWorkgroupSize().z);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete diBuilder;
|
delete diBuilder;
|
||||||
|
|
Loading…
Reference in New Issue