fix: cast param to proper datatype width

Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
Naklicki, Mateusz
2023-12-22 17:31:56 +00:00
committed by Compute-Runtime-Automation
parent 341a13ce8e
commit 4fa6368c01

View File

@@ -1243,7 +1243,7 @@ int IoctlHelperXe::xeVmBind(const VmBindParams &vmBindParams, bool isBind) {
bind.bind.addr = gmmHelper->decanonize(vmBindParams.start);
bind.bind.flags = DRM_XE_VM_BIND_FLAG_ASYNC;
bind.bind.obj_offset = vmBindParams.offset;
bind.bind.pat_index = vmBindParams.patIndex;
bind.bind.pat_index = static_cast<uint16_t>(vmBindParams.patIndex);
if (isBind) {
bind.bind.op = DRM_XE_VM_BIND_OP_MAP;