intel/xe: Correct DRM_XE_EXEC_QUEUE_SET_PROPERTY's ioctl

DRM_XE_EXEC_QUEUE_SET_PROPERTY is the offset,
while DRM_IOCTL_XE_EXEC_QUEUE_SET_PROPERTY is the real number.

Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26253>
This commit is contained in:
Shuicheng Lin 2023-11-17 13:21:33 +00:00 committed by Marge Bot
parent 275afe73f7
commit dddab9fa77
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ iris_xe_init_batch(struct iris_bufmgr *bufmgr,
goto error_create_exec_queue;
exec_queue_property.exec_queue_id = create.exec_queue_id;
intel_ioctl(iris_bufmgr_get_fd(bufmgr), DRM_XE_EXEC_QUEUE_SET_PROPERTY,
intel_ioctl(iris_bufmgr_get_fd(bufmgr), DRM_IOCTL_XE_EXEC_QUEUE_SET_PROPERTY,
&exec_queue_property);
/* TODO: handle "protected" context/exec_queue */

View file

@ -121,7 +121,7 @@ create_engine(struct anv_device *device,
.property = XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY,
.value = anv_vk_priority_to_drm_sched_priority(priority),
};
ret = intel_ioctl(device->fd, DRM_XE_EXEC_QUEUE_SET_PROPERTY,
ret = intel_ioctl(device->fd, DRM_IOCTL_XE_EXEC_QUEUE_SET_PROPERTY,
&exec_queue_property);
if (ret && priority > VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_KHR)
goto priority_error;