mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +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
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2018 Intel Corporation
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -166,7 +166,7 @@ HWTEST_F(EnqueueWriteImageTest, surfaceState) {
|
||||
|
||||
// BufferToImage kernel uses BTI=1 for destSurface
|
||||
uint32_t bindingTableIndex = 1;
|
||||
const auto &surfaceState = getSurfaceState<FamilyType>(bindingTableIndex);
|
||||
const auto &surfaceState = getSurfaceState<FamilyType>(&pCmdQ->getIndirectHeap(IndirectHeap::SURFACE_STATE, 0), bindingTableIndex);
|
||||
|
||||
// EnqueueWriteImage uses multi-byte copies depending on per-pixel-size-in-bytes
|
||||
const auto &imageDesc = dstImage->getImageDesc();
|
||||
|
||||
Reference in New Issue
Block a user