mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
sys_ocldev
parent
eb65521057
commit
3c47c418a9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user