diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-02-15 12:10:33 +0100 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-02-15 12:11:38 +0100 |
commit | 7766378d97323de375687285f2e125008b79045d (patch) | |
tree | a844b7ccf0fb9e68956785863549e6dbfc5a15c3 /libdrm | |
parent | 7803977aa9c3ca6360e6c22e77415cf17151cb9e (diff) |
Initial support for fence object classes.
(Fence objects belonging to different command submission mechanisms).
Diffstat (limited to 'libdrm')
-rw-r--r-- | libdrm/xf86drm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index 56450e80..1a8edeef 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -2267,7 +2267,7 @@ int drmCommandWriteRead(int fd, unsigned long drmCommandIndex, void *data, * DRM_FENCE_MASK_DRIVER */ -int drmFenceCreate(int fd, unsigned flags, int class,unsigned type, +int drmFenceCreate(int fd, unsigned flags, int class, unsigned type, drmFence *fence) { drm_fence_arg_t arg; @@ -2410,8 +2410,9 @@ int drmFenceSignaled(int fd, drmFence *fence, unsigned fenceType, int drmFenceEmit(int fd, unsigned flags, drmFence *fence, unsigned emit_type) { drm_fence_arg_t arg; - + memset(&arg, 0, sizeof(arg)); + arg.class = fence->class; arg.flags = flags; arg.handle = fence->handle; arg.type = emit_type; |