Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/i915drm Add some more stub i915_sw_fen...



details:   https://anonhg.NetBSD.org/src/rev/1f85137c5ba2
branches:  trunk
changeset: 1028067:1f85137c5ba2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:46:32 2021 +0000

description:
Add some more stub i915_sw_fence prototypes.

diffstat:

 sys/external/bsd/drm2/i915drm/i915_sw_fence.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 3fa1a3dd89e0 -r 1f85137c5ba2 sys/external/bsd/drm2/i915drm/i915_sw_fence.h
--- a/sys/external/bsd/drm2/i915drm/i915_sw_fence.h     Sun Dec 19 01:46:23 2021 +0000
+++ b/sys/external/bsd/drm2/i915drm/i915_sw_fence.h     Sun Dec 19 01:46:32 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_sw_fence.h,v 1.2 2021/12/19 01:23:59 riastradh Exp $      */
+/*     $NetBSD: i915_sw_fence.h,v 1.3 2021/12/19 01:46:32 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -45,6 +45,10 @@
        char dummy;
 };
 
+struct i915_sw_fence_wait {
+       char dummy;
+};
+
 enum i915_sw_fence_notify {
        FENCE_COMPLETE,
        FENCE_FREE,
@@ -56,11 +60,17 @@
            int (*)(struct i915_sw_fence *, enum i915_sw_fence_notify));
 void   i915_sw_fence_fini(struct i915_sw_fence *);
 
+bool   i915_sw_fence_signaled(struct i915_sw_fence *);
+
 void   i915_sw_fence_await_reservation(struct i915_sw_fence *,
            struct reservation_object *, const struct dma_fence_ops *, bool,
            unsigned long, gfp_t);
+void   i915_sw_fence_await_sw_fence(struct i915_sw_fence *,
+           struct i915_sw_fence *, struct i915_sw_fence_wait *);
 void   i915_sw_fence_await_sw_fence_gfp(struct i915_sw_fence *,
            struct i915_sw_fence *, gfp_t);
+int    i915_sw_fence_await_dma_fence(struct i915_sw_fence *,
+           struct dma_fence *, int, gfp_t);
 void   i915_sw_fence_commit(struct i915_sw_fence *);
 
 #endif /* _I915DRM_I915_SW_FENCE_H_ */



Home | Main Index | Thread Index | Old Index