mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
e6cffa1f0e
commit
feea00a6c4
1 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue