diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-25 06:12:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-25 06:12:00 +0000 |
commit | b7a23fb6814281ddf68a0a0cdc188fe0b4218b6d (patch) | |
tree | 2d10f208e194cc4f2a66e11790722474f9eeef8b /sys/dev/pci/drm/include | |
parent | 7dc2f45728f7aa5d8b52c0259e1ed64716eacaec (diff) |
enable more of the syncobj code
avoids unimplemented function warnings when running Mesa iris driver
Diffstat (limited to 'sys/dev/pci/drm/include')
-rw-r--r-- | sys/dev/pci/drm/include/linux/dma-fence-chain.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/include/linux/dma-fence-chain.h b/sys/dev/pci/drm/include/linux/dma-fence-chain.h index 8d1ac5d5337..87d6043d71b 100644 --- a/sys/dev/pci/drm/include/linux/dma-fence-chain.h +++ b/sys/dev/pci/drm/include/linux/dma-fence-chain.h @@ -3,7 +3,40 @@ #ifndef _LINUX_DMA_FENCE_CHAIN_H #define _LINUX_DMA_FENCE_CHAIN_H +#include <linux/dma-fence.h> + struct dma_fence_chain { + struct dma_fence base; + struct dma_fence *fence; + struct dma_fence *prev; + uint64_t prev_seqno; }; +static inline int +dma_fence_chain_find_seqno(struct dma_fence **df, uint64_t seqno) +{ + if (seqno == 0) + return 0; + STUB(); + return -ENOSYS; +} + +static inline struct dma_fence_chain * +to_dma_fence_chain(struct dma_fence *fence) +{ + STUB(); + return NULL; +} + +#define dma_fence_chain_for_each(a, b) + +static inline void +dma_fence_chain_init(struct dma_fence_chain *chain, struct dma_fence *prev, + struct dma_fence *fence, uint64_t seqno) +{ + chain->fence = fence; + chain->prev = prev; + chain->prev_seqno = 0; +} + #endif |