Refactor HardwareParse::getSurfaceState() to return CPU memory

- if SSH indirectHeap is passed, use CPU address instead of GPU
address programed in SBA command

Change-Id: Id2c8973db0dfe2d9562ee835a27c4d3c28ea3351
This commit is contained in:
Hoppe, Mateusz
2019-02-04 15:12:06 +01:00
committed by sys_ocldev
parent eb65521057
commit 3c47c418a9
8 changed files with 18 additions and 15 deletions

View File

@@ -166,7 +166,7 @@ HWTEST_F(EnqueueReadImageTest, surfaceState) {
// BufferToImage kernel uses BTI=1 for destSurface
uint32_t bindingTableIndex = 0;
const auto &surfaceState = getSurfaceState<FamilyType>(bindingTableIndex);
const auto &surfaceState = getSurfaceState<FamilyType>(&pCmdQ->getIndirectHeap(IndirectHeap::SURFACE_STATE, 0), bindingTableIndex);
// EnqueueReadImage uses multi-byte copies depending on per-pixel-size-in-bytes
const auto &imageDesc = srcImage->getImageDesc();