[gem] Catch -EINTR from blocking GEM ioctl and restart.

This commit is contained in:
Eric Anholt 2008-06-13 10:03:24 -07:00
parent 02d7141ac3
commit d775ddc64d
1 changed files with 4 additions and 2 deletions

View File

@ -111,8 +111,10 @@ intel_batch_flush(ScrnInfoPtr pScrn)
exec->DR1 = 0;
exec->DR4 = 0xffffffff;
ret = drmCommandWriteRead(pI830->drmSubFD, DRM_I915_GEM_EXECBUFFER,
exec, sizeof(*exec));
do {
ret = drmCommandWriteRead(pI830->drmSubFD, DRM_I915_GEM_EXECBUFFER,
exec, sizeof(*exec));
} while (ret == -EINTR);
if (ret != 0)
FatalError("Failed to submit batchbuffer: %s\n", strerror(errno));
} else {