mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Set destination vm id in vm prefetch call
Use rsvd in prelim_drm_i915_gem_vm_prefetch to pass vm id to prefetch to Related-To: NEO-6740 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
083168dafb
commit
d942660b20
@@ -229,12 +229,13 @@ bool IoctlHelperPrelim20::setVmBoAdvise(int32_t handle, uint32_t attribute, void
|
||||
return true;
|
||||
}
|
||||
|
||||
bool IoctlHelperPrelim20::setVmPrefetch(uint64_t start, uint64_t length, uint32_t region) {
|
||||
bool IoctlHelperPrelim20::setVmPrefetch(uint64_t start, uint64_t length, uint32_t region, uint32_t vmId) {
|
||||
prelim_drm_i915_gem_vm_prefetch vmPrefetch{};
|
||||
|
||||
vmPrefetch.length = length;
|
||||
vmPrefetch.region = region;
|
||||
vmPrefetch.start = start;
|
||||
vmPrefetch.rsvd = vmId;
|
||||
|
||||
int ret = IoctlHelper::ioctl(DrmIoctl::GemVmPrefetch, &vmPrefetch);
|
||||
if (ret != 0) {
|
||||
|
||||
Reference in New Issue
Block a user