mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Pass canonized gpuAddress in setCpuPtrAndGpuAddress
Related-To: NEO-6523 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c51ce2a35c
commit
77dde01503
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -21,7 +21,9 @@ void ImplicitScalingFixture::SetUp() {
|
||||
|
||||
alignedMemory = alignedMalloc(bufferSize, 4096);
|
||||
|
||||
cmdBufferAlloc.setCpuPtrAndGpuAddress(alignedMemory, gpuVa);
|
||||
auto gmmHelper = pDevice->getGmmHelper();
|
||||
auto canonizedGpuAddress = gmmHelper->canonize(gpuVa);
|
||||
cmdBufferAlloc.setCpuPtrAndGpuAddress(alignedMemory, canonizedGpuAddress);
|
||||
|
||||
commandStream.replaceBuffer(alignedMemory, bufferSize);
|
||||
commandStream.replaceGraphicsAllocation(&cmdBufferAlloc);
|
||||
|
||||
Reference in New Issue
Block a user