iris/xe: move error checking to inside the devinfo->no_hw case
This check is for the command submission return. Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Rohan Garg <rohan.garg@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37559>
This commit is contained in:
@@ -408,12 +408,13 @@ xe_batch_submit(struct iris_batch *batch)
|
||||
.syncs = (uintptr_t)syncs,
|
||||
.num_syncs = sync_len,
|
||||
};
|
||||
if (!batch->screen->devinfo->no_hw)
|
||||
if (!batch->screen->devinfo->no_hw) {
|
||||
ret = intel_ioctl(iris_bufmgr_get_fd(bufmgr), DRM_IOCTL_XE_EXEC, &exec);
|
||||
|
||||
if (ret) {
|
||||
ret = -errno;
|
||||
goto error_exec;
|
||||
if (ret) {
|
||||
ret = -errno;
|
||||
goto error_exec;
|
||||
}
|
||||
}
|
||||
|
||||
if (!iris_implicit_sync_export(batch, &implicit_sync))
|
||||
|
||||
Reference in New Issue
Block a user