I've tried to ask linux folk if this is also true for linux, but the
answer is unclear at this time.

Signed-off-by: Robert Noland <[email protected]>
---
 .../winsys/drm/vmware/core/vmw_screen_ioctl.c      |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c 
b/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c
index 51e455f..f23b7c1 100644
--- a/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c
+++ b/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c
@@ -260,9 +260,7 @@ vmw_ioctl_command(struct vmw_winsys_screen *vws, void 
*commands, uint32_t size,
    arg.commands = (unsigned long)commands;
    arg.command_size = size;
 
-   do {
-       ret = drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_EXECBUF, &arg, 
sizeof(arg));
-   } while(ret == -ERESTART);
+   ret = drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_EXECBUF, &arg, 
sizeof(arg));
    if (ret) {
       debug_printf("%s error %s.\n", __FUNCTION__, strerror(-ret));
    }
@@ -306,10 +304,8 @@ vmw_ioctl_region_create(struct vmw_winsys_screen *vws, 
uint32_t size)
 
    memset(&arg, 0, sizeof(arg));
    req->size = size;
-   do {
-      ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_ALLOC_DMABUF, &arg,
+   ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_ALLOC_DMABUF, &arg,
                                sizeof(arg));
-   } while (ret == -ERESTART);
 
    if (ret) {
       debug_printf("IOCTL failed %d: %s\n", ret, strerror(-ret));
@@ -436,10 +432,8 @@ vmw_ioctl_sync(struct vmw_winsys_screen *vws,
    memset(&arg, 0, sizeof(arg));
    arg.sequence = fence;
 
-   do {
-       ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_FENCE_WAIT, &arg,
+   ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_FENCE_WAIT, &arg,
                                 sizeof(arg));
-   } while (ret == -ERESTART);
 }
 
 
-- 
1.6.4


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to