mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Fix use HWTEST2_F instead of HWTEST2_P in blit tests
Change-Id: I519703bbb7285106031ce40f1e471d2bc058e37f Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
@@ -176,15 +176,21 @@ typename FamilyType::XY_COLOR_BLT::COLOR_DEPTH getColorDepth(size_t patternSize)
|
||||
return depth;
|
||||
}
|
||||
|
||||
HWTEST2_P(BlitColorTests, givenCommandStreamWhenCallToDispatchMemoryFillThenColorDepthAreProgrammedCorrectly, BlitPlatforms) {
|
||||
auto patternSize = GetParam();
|
||||
HWTEST2_F(BlitColorTests, givenCommandStreamAndPaternSizeEqualOneWhenCallToDispatchMemoryFillThenColorDepthAreProgrammedCorrectly, BlitPlatforms) {
|
||||
size_t patternSize = 1;
|
||||
auto expecttedDepth = getColorDepth<FamilyType>(patternSize);
|
||||
GivenLinearStreamWhenCallDispatchBlitMemoryColorFillThenCorrectDepthIsProgrammed<FamilyType> test(pDevice);
|
||||
test.TestBodyImpl(patternSize, expecttedDepth);
|
||||
}
|
||||
HWTEST2_F(BlitColorTests, givenCommandStreamAndPaternSizeEqualTwoWhenCallToDispatchMemoryFillThenColorDepthAreProgrammedCorrectly, BlitPlatforms) {
|
||||
size_t patternSize = 2;
|
||||
auto expecttedDepth = getColorDepth<FamilyType>(patternSize);
|
||||
GivenLinearStreamWhenCallDispatchBlitMemoryColorFillThenCorrectDepthIsProgrammed<FamilyType> test(pDevice);
|
||||
test.TestBodyImpl(patternSize, expecttedDepth);
|
||||
}
|
||||
HWTEST2_F(BlitColorTests, givenCommandStreamAndPaternSizeEqualFourWhenCallToDispatchMemoryFillThenColorDepthAreProgrammedCorrectly, BlitPlatforms) {
|
||||
size_t patternSize = 4;
|
||||
auto expecttedDepth = getColorDepth<FamilyType>(patternSize);
|
||||
GivenLinearStreamWhenCallDispatchBlitMemoryColorFillThenCorrectDepthIsProgrammed<FamilyType> test(pDevice);
|
||||
test.TestBodyImpl(patternSize, expecttedDepth);
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(size_t,
|
||||
BlitColorTests,
|
||||
testing::Values(1,
|
||||
2,
|
||||
4));
|
||||
|
||||
Reference in New Issue
Block a user