From b7a23fb6814281ddf68a0a0cdc188fe0b4218b6d Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 25 Aug 2020 06:12:00 +0000 Subject: enable more of the syncobj code avoids unimplemented function warnings when running Mesa iris driver --- sys/dev/pci/drm/include/linux/dma-fence-chain.h | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'sys/dev/pci/drm/include') 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 + 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 -- cgit v1.2.3