mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
Simplify fillExecObject code.
- remove defines - always go for 64 bit addresses, ( all our GPU VA addressees are 64 bit ) Change-Id: Ic650feddc964e7dad45bad4248c0ba4dcf23e886 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
94761a78d6
commit
288193c6b4
@@ -96,11 +96,7 @@ void BufferObject::fillExecObject(drm_i915_gem_exec_object2 &execObject, uint32_
|
||||
execObject.relocs_ptr = 0ul;
|
||||
execObject.alignment = 0;
|
||||
execObject.offset = this->gpuAddress;
|
||||
execObject.flags = EXEC_OBJECT_PINNED;
|
||||
#ifdef __x86_64__
|
||||
// set EXEC_OBJECT_SUPPORTS_48B_ADDRESS flag if whole object resides in 32BIT address space boundary
|
||||
execObject.flags |= (this->gpuAddress + this->size) & MemoryConstants::zoneHigh ? EXEC_OBJECT_SUPPORTS_48B_ADDRESS : 0;
|
||||
#endif
|
||||
execObject.flags = EXEC_OBJECT_PINNED | EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
|
||||
execObject.rsvd1 = drmContextId;
|
||||
execObject.rsvd2 = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user