zebin: sanitize scratch space size

Sanitize scratch space size to value programmable on GPU.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
Krystian Chmielewski
2022-09-08 11:12:08 +00:00
committed by Compute-Runtime-Automation
parent 7fa9cfd7fc
commit 1f6c09ba1d
9 changed files with 115 additions and 7 deletions

View File

@ -1506,3 +1506,13 @@ HWTEST2_F(HwHelperTest, GivenModifiedGtSystemInfoAndXeHpOrXeHpgCoreWhenCallingCa
EXPECT_EQ(expectedThreadCount, result);
}
}
HWTEST2_F(HwHelperTest, givenAtMostGen12lpPlatformWhenGettingMinimalScratchSpaceSizeThen1024IsReturned, IsAtMostGen12lp) {
const auto &hwHelper = HwHelper::get(renderCoreFamily);
EXPECT_EQ(1024U, hwHelper.getMinimalScratchSpaceSize());
}
HWTEST2_F(HwHelperTest, givenAtLeastXeHpPlatformWhenGettingMinimalScratchSpaceSizeThen64IsReturned, IsAtLeastXeHpCore) {
const auto &hwHelper = HwHelper::get(renderCoreFamily);
EXPECT_EQ(64U, hwHelper.getMinimalScratchSpaceSize());
}