mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
User space AUBs to store GPU address in non-canonical form
This commit ensures that GPU address be stored to AUB file in decanonized form Change-Id: I6deb98e59d8c23d47d945a84c57ce81c0c5e2ba4
This commit is contained in:
committed by
sys_ocldev
parent
e3268f8a9c
commit
103b560655
@@ -26,6 +26,7 @@
|
||||
#include "runtime/helpers/ptr_math.h"
|
||||
#include "runtime/memory_manager/graphics_allocation.h"
|
||||
#include "runtime/memory_manager/os_agnostic_memory_manager.h"
|
||||
#include "runtime/gmm_helper/gmm_helper.h"
|
||||
#include <cstring>
|
||||
|
||||
namespace OCLRT {
|
||||
@@ -405,7 +406,7 @@ void AUBCommandStreamReceiverHw<GfxFamily>::makeResident(GraphicsAllocation &gfx
|
||||
template <typename GfxFamily>
|
||||
bool AUBCommandStreamReceiverHw<GfxFamily>::writeMemory(GraphicsAllocation &gfxAllocation) {
|
||||
auto cpuAddress = gfxAllocation.getUnderlyingBuffer();
|
||||
auto gpuAddress = gfxAllocation.getGpuAddress();
|
||||
auto gpuAddress = Gmm::decanonize(gfxAllocation.getGpuAddress());
|
||||
auto size = gfxAllocation.getUnderlyingBufferSize();
|
||||
auto allocType = gfxAllocation.getAllocationType();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user