projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e90c7
)
intel: Restart on interrupt of bo_wait_rendering instead of complaining.
author
Eric Anholt
<eric@anholt.net>
Fri, 7 Nov 2008 20:58:52 +0000
(12:58 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 7 Nov 2008 20:59:43 +0000
(12:59 -0800)
libdrm/intel/intel_bufmgr_gem.c
patch
|
blob
|
history
diff --git
a/libdrm/intel/intel_bufmgr_gem.c
b/libdrm/intel/intel_bufmgr_gem.c
index
5eaf5f5
..
9cb3359
100644
(file)
--- a/
libdrm/intel/intel_bufmgr_gem.c
+++ b/
libdrm/intel/intel_bufmgr_gem.c
@@
-658,7
+658,9
@@
drm_intel_gem_bo_wait_rendering(drm_intel_bo *bo)
set_domain.handle = bo_gem->gem_handle;
set_domain.read_domains = I915_GEM_DOMAIN_GTT;
set_domain.write_domain = 0;
- ret = ioctl (bufmgr_gem->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &set_domain);
+ do {
+ ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &set_domain);
+ } while (ret == -1 && errno == EINTR);
if (ret != 0) {
fprintf (stderr, "%s:%d: Error setting memory domains %d (%08x %08x): %s .\n",
__FILE__, __LINE__,