anv: retry batchbuffer submission with i915

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23950>
This commit is contained in:
Rohan Garg 2023-06-30 17:12:15 +02:00 committed by Marge Bot
parent e6cffa1f0e
commit feea00a6c4

View file

@ -539,10 +539,16 @@ static int
anv_gem_execbuffer(struct anv_device *device,
struct drm_i915_gem_execbuffer2 *execbuf)
{
if (execbuf->flags & I915_EXEC_FENCE_OUT)
return intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2_WR, execbuf);
else
return intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
int ret;
const unsigned long request = (execbuf->flags & I915_EXEC_FENCE_OUT) ?
DRM_IOCTL_I915_GEM_EXECBUFFER2_WR :
DRM_IOCTL_I915_GEM_EXECBUFFER2;
do {
ret = intel_ioctl(device->fd, request, execbuf);
} while (ret && errno == ENOMEM);
return ret;
}
static VkResult