iris: finish converting from drmIoctl to intel_ioctl
Only 3 remaining users. The implementations are exactly the same. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11194>
This commit is contained in:
@@ -599,7 +599,7 @@ iris_batch_check_for_reset(struct iris_batch *batch)
|
||||
enum pipe_reset_status status = PIPE_NO_RESET;
|
||||
struct drm_i915_reset_stats stats = { .ctx_id = batch->hw_ctx_id };
|
||||
|
||||
if (drmIoctl(screen->fd, DRM_IOCTL_I915_GET_RESET_STATS, &stats))
|
||||
if (intel_ioctl(screen->fd, DRM_IOCTL_I915_GET_RESET_STATS, &stats))
|
||||
DBG("DRM_IOCTL_I915_GET_RESET_STATS failed: %s\n", strerror(errno));
|
||||
|
||||
if (stats.batch_active != 0) {
|
||||
|
||||
@@ -1446,7 +1446,7 @@ iris_create_hw_context(struct iris_bufmgr *bufmgr)
|
||||
.param = I915_CONTEXT_PARAM_RECOVERABLE,
|
||||
.value = false,
|
||||
};
|
||||
drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, &p);
|
||||
intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, &p);
|
||||
|
||||
return create.ctx_id;
|
||||
}
|
||||
@@ -1458,7 +1458,7 @@ iris_hw_context_get_priority(struct iris_bufmgr *bufmgr, uint32_t ctx_id)
|
||||
.ctx_id = ctx_id,
|
||||
.param = I915_CONTEXT_PARAM_PRIORITY,
|
||||
};
|
||||
drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM, &p);
|
||||
intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM, &p);
|
||||
return p.value; /* on error, return 0 i.e. default priority */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user