mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-22 19:29:06 +08:00
fix: move adjust depth to image hw
Related-To: NEO-8390, HSD-16021488507 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
020822fe29
commit
49cc570e59
@@ -295,20 +295,4 @@ HWTEST2_F(CommandEncoderTests, whenForcingLowQualityFilteringAndAppendSamplerSta
|
||||
EXPECT_EQ(SAMPLER_STATE::LOW_QUALITY_FILTER_DISABLE, state.getLowQualityFilter());
|
||||
productHelper.adjustSamplerState(&state, *defaultHwInfo);
|
||||
EXPECT_EQ(SAMPLER_STATE::LOW_QUALITY_FILTER_ENABLE, state.getLowQualityFilter());
|
||||
}
|
||||
|
||||
HWTEST_F(CommandEncoderTests, givenSurfaceStateWhenAdjustDepthLimitationsCalledThenSurfaceStateNotChanged) {
|
||||
typename FamilyType::RENDER_SURFACE_STATE ss;
|
||||
uint32_t minArrayElement = 1;
|
||||
uint32_t renderTargetViewExtent = 1;
|
||||
uint32_t originalDepth = 10;
|
||||
uint32_t mipCount = 1;
|
||||
|
||||
MockExecutionEnvironment mockExecutionEnvironment{};
|
||||
auto releaseHelper = mockExecutionEnvironment.rootDeviceEnvironments[0]->getReleaseHelper();
|
||||
|
||||
ss.setDepth(originalDepth);
|
||||
auto origSS = ss;
|
||||
EncodeSurfaceState<FamilyType>::adjustDepthLimitations(&ss, minArrayElement, renderTargetViewExtent, originalDepth, mipCount, true, releaseHelper);
|
||||
EXPECT_EQ(memcmp(&ss, &origSS, sizeof(typename FamilyType::RENDER_SURFACE_STATE)), 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user