mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02: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,
|
anv_gem_execbuffer(struct anv_device *device,
|
||||||
struct drm_i915_gem_execbuffer2 *execbuf)
|
struct drm_i915_gem_execbuffer2 *execbuf)
|
||||||
{
|
{
|
||||||
if (execbuf->flags & I915_EXEC_FENCE_OUT)
|
int ret;
|
||||||
return intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2_WR, execbuf);
|
const unsigned long request = (execbuf->flags & I915_EXEC_FENCE_OUT) ?
|
||||||
else
|
DRM_IOCTL_I915_GEM_EXECBUFFER2_WR :
|
||||||
return intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
|
DRM_IOCTL_I915_GEM_EXECBUFFER2;
|
||||||
|
|
||||||
|
do {
|
||||||
|
ret = intel_ioctl(device->fd, request, execbuf);
|
||||||
|
} while (ret && errno == ENOMEM);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue