diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-12-11 04:56:55 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-12-11 04:56:55 +0000 |
commit | 71249a916acc9d0a01280fe2aae5dba612482ef1 (patch) | |
tree | 469843feb8d9fec9f2376bb33cf6625335c96c02 | |
parent | 67b6969458271006552d123cce8ee5001a8f502c (diff) |
add dma_fence_is_later_or_same() for 6.1.66 drm
-rw-r--r-- | sys/dev/pci/drm/include/linux/dma-fence.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/include/linux/dma-fence.h b/sys/dev/pci/drm/include/linux/dma-fence.h index b6942e4b770..8c06d399a18 100644 --- a/sys/dev/pci/drm/include/linux/dma-fence.h +++ b/sys/dev/pci/drm/include/linux/dma-fence.h @@ -113,6 +113,14 @@ dma_fence_is_later(struct dma_fence *a, struct dma_fence *b) return __dma_fence_is_later(a->seqno, b->seqno, a->ops); } +static inline bool +dma_fence_is_later_or_same(struct dma_fence *a, struct dma_fence *b) +{ + if (a == b) + return true; + return dma_fence_is_later(a, b); +} + static inline void dma_fence_set_error(struct dma_fence *fence, int error) { |