Only add native-type on EXE signals. Otherwise flush flags may
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 10 Oct 2007 07:31:51 +0000 (09:31 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 10 Oct 2007 07:31:51 +0000 (09:31 +0200)
get out of sync.

linux-core/drm_fence.c

index c25ff3b..9a29356 100644 (file)
@@ -90,7 +90,9 @@ void drm_fence_handler(struct drm_device * dev, uint32_t fence_class,
                        break;
                }
 
-               type |= fence->native_type;
+               if (is_exe)
+                       type |= fence->native_type;
+
                relevant = type & fence->type;
 
                if ((fence->signaled | relevant) != fence->signaled) {