|
6 | 6 | */ |
7 | 7 |
|
8 | 8 | #include "shared/source/command_container/command_encoder.h" |
9 | | -#include "shared/source/gmm_helper/gmm_helper.h" |
10 | 9 | #include "shared/test/common/cmd_parse/gen_cmd_parse.h" |
11 | 10 | #include "shared/test/common/fixtures/device_fixture.h" |
12 | 11 | #include "shared/test/common/helpers/debug_manager_state_restore.h" |
@@ -242,13 +241,12 @@ HWTEST2_F(SingleAddressSpaceFixture, GivenOneNonZeroSbaAddressesWhenProgrammingS |
242 | 241 | cmdStream.replaceGraphicsAllocation(streamAllocation); |
243 | 242 | cmdStream.replaceBuffer(streamAllocation->getUnderlyingBuffer(), streamAllocation->getUnderlyingBufferSize()); |
244 | 243 |
|
245 | | - uint64_t ssba = 0x0000800011112222; |
| 244 | + uint64_t ssba = 0x1234567000; |
246 | 245 |
|
247 | 246 | NEO::Debugger::SbaAddresses sbaAddresses = {0}; |
248 | 247 | sbaAddresses.SurfaceStateBaseAddress = ssba; |
249 | 248 |
|
250 | | - debugger->singleAddressSpaceSbaTracking = true; |
251 | | - debugger->captureStateBaseAddress(cmdStream, sbaAddresses); |
| 249 | + debugger->programSbaTrackingCommandsSingleAddressSpace(cmdStream, sbaAddresses); |
252 | 250 |
|
253 | 251 | GenCmdList cmdList; |
254 | 252 | ASSERT_TRUE(FamilyType::PARSE::parseCommandBuffer(cmdList, cmdStream.getCpuBase(), cmdStream.getUsed())); |
@@ -291,17 +289,9 @@ HWTEST2_F(SingleAddressSpaceFixture, GivenOneNonZeroSbaAddressesWhenProgrammingS |
291 | 289 |
|
292 | 290 | itor = find<MI_STORE_DATA_IMM *>(itor, cmdList.end()); |
293 | 291 | ASSERT_NE(cmdList.end(), itor); |
294 | | - auto lowDword = genCmdCast<MI_STORE_DATA_IMM *>(*itor)->getDataDword0(); |
295 | | - itor++; |
296 | 292 |
|
297 | 293 | itor = find<MI_STORE_DATA_IMM *>(itor, cmdList.end()); |
298 | 294 | ASSERT_NE(cmdList.end(), itor); |
299 | | - auto highDword = genCmdCast<MI_STORE_DATA_IMM *>(*itor)->getDataDword0(); |
300 | | - |
301 | | - uint64_t foundSsba = ((static_cast<uint64_t>(highDword) & 0xffffffff) << 32) | lowDword; |
302 | | - const auto gmmHelper = pDevice->getGmmHelper(); |
303 | | - const auto ssbaCanonized = gmmHelper->canonize(ssba); |
304 | | - EXPECT_EQ(ssbaCanonized, foundSsba); |
305 | 295 |
|
306 | 296 | itor = find<MI_ARB_CHECK *>(itor, cmdList.end()); |
307 | 297 | ASSERT_NE(cmdList.end(), itor); |
|
0 commit comments