mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +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
@@ -85,9 +85,9 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
|
||||
void *getDriverAllocatedCpuPtr() const { return driverAllocatedCpuPointer; }
|
||||
void setDriverAllocatedCpuPtr(void *allocatedCpuPtr) { driverAllocatedCpuPointer = allocatedCpuPtr; }
|
||||
|
||||
void setCpuPtrAndGpuAddress(void *cpuPtr, uint64_t gpuAddress) {
|
||||
void setCpuPtrAndGpuAddress(void *cpuPtr, uint64_t canonizedGpuAddress) {
|
||||
this->cpuPtr = cpuPtr;
|
||||
this->gpuAddress = GmmHelper::canonize(gpuAddress);
|
||||
this->gpuAddress = canonizedGpuAddress;
|
||||
}
|
||||
size_t getUnderlyingBufferSize() const { return size; }
|
||||
void setSize(size_t size) { this->size = size; }
|
||||
|
||||
Reference in New Issue
Block a user