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/dist/drm/i915 i915: Make GEM_BUG_ON a ...
details: https://anonhg.NetBSD.org/src/rev/434f93480ac6
branches: trunk
changeset: 1028824:434f93480ac6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:08:54 2021 +0000
description:
i915: Make GEM_BUG_ON a little more useful here.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_gem.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r eab2b505ab5d -r 434f93480ac6 sys/external/bsd/drm2/dist/drm/i915/i915_gem.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.h Sun Dec 19 12:08:46 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.h Sun Dec 19 12:08:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_gem.h,v 1.5 2021/12/19 11:03:25 riastradh Exp $ */
+/* $NetBSD: i915_gem.h,v 1.6 2021/12/19 12:08:54 riastradh Exp $ */
/*
* Copyright © 2016 Intel Corporation
@@ -41,6 +41,9 @@
#define GEM_SHOW_DEBUG() drm_debug_enabled(DRM_UT_DRIVER)
+#ifdef __NetBSD__
+#define GEM_BUG_ON(condition) KASSERT(!(condition))
+#else
#define GEM_BUG_ON(condition) do { if (unlikely((condition))) { \
GEM_TRACE_ERR("%s:%d GEM_BUG_ON(%s)\n", \
__func__, __LINE__, __stringify(condition)); \
@@ -48,6 +51,7 @@
BUG(); \
} \
} while(0)
+#endif
#define GEM_WARN_ON(expr) WARN_ON(expr)
#define GEM_DEBUG_DECL(var) var
Home |
Main Index |
Thread Index |
Old Index