mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Refactor bindless surface state offsets
Related-To: NEO-4607 Change-Id: I0b0ac275b532cf33f0292d3cf92abf2f49ff354f Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1401b45018
commit
d2c07cb9ed
@@ -28,3 +28,14 @@ HWCMDTEST_F(IGFX_GEN8_CORE, HwHelperTest, givenHwHelperWhenAskedForLowPriorityEn
|
||||
auto hwHelperEngineType = HwHelperHw<FamilyType>::lowPriorityEngineType;
|
||||
EXPECT_EQ(aub_stream::EngineType::ENGINE_RCS, hwHelperEngineType);
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, HwHelperTest, givenHwHelperWhenGettingBindlessSurfaceExtendedMessageDescriptorValueThenCorrectValueIsReturned) {
|
||||
auto &hwHelper = HwHelper::get(pDevice->getHardwareInfo().platform.eRenderCoreFamily);
|
||||
auto value = hwHelper.getBindlessSurfaceExtendedMessageDescriptorValue(0x200);
|
||||
|
||||
typename FamilyType::DataPortBindlessSurfaceExtendedMessageDescriptor messageExtDescriptor = {};
|
||||
messageExtDescriptor.setBindlessSurfaceOffset(0x200);
|
||||
|
||||
EXPECT_EQ(messageExtDescriptor.getBindlessSurfaceOffsetToPatch(), value);
|
||||
EXPECT_EQ(0x200u << 6, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user