mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 22:08:53 +08:00
refactor: Merge duplicate if blocks
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cc724285d0
commit
864020e12d
@@ -1126,16 +1126,13 @@ uint64_t IoctlHelperXe::getFlagsForVmBind(bool bindCapture, bool bindImmediate,
|
||||
if (bindCapture) {
|
||||
flags |= DRM_XE_VM_BIND_FLAG_DUMPABLE;
|
||||
}
|
||||
if (bindImmediate) {
|
||||
if (bindImmediate || bindMakeResident) {
|
||||
flags |= DRM_XE_VM_BIND_FLAG_IMMEDIATE;
|
||||
}
|
||||
|
||||
if (readOnlyResource) {
|
||||
flags |= DRM_XE_VM_BIND_FLAG_READONLY;
|
||||
}
|
||||
if (bindMakeResident) {
|
||||
flags |= DRM_XE_VM_BIND_FLAG_IMMEDIATE;
|
||||
}
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user