[gem] Catch -EINTR from blocking GEM ioctl and restart.
This commit is contained in:
parent
02d7141ac3
commit
d775ddc64d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue