mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
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:

committed by
Compute-Runtime-Automation

parent
7fa9cfd7fc
commit
1f6c09ba1d
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user