ports/graphics/igt-gpu-tools/files/patch-lib_i915_gem__engine__topology.c
Jake Freeland 5d303ab480
graphics/igt-gpu-tools: Test suite for drm drivers
The igt testing suite is separated into tests and tools that target kms,
memory management, and command submission.  These tests are especially
helpful for low-level reporting, transparent tracking of kernel changes,
and efficient debugging of modern drm drivers.

Reviewed by:	diizzy, lwhsu, jrm
Differential Revision:	https://reviews.freebsd.org/D36213
2022-09-09 12:06:45 -03:00

13 lines
387 B
C

--- lib/i915/gem_engine_topology.c.orig 2022-08-31 20:00:01 UTC
+++ lib/i915/gem_engine_topology.c
@@ -88,6 +88,10 @@
*/
#define SIZEOF_QUERY offsetof(struct drm_i915_query_engine_info, \
engines[GEM_MAX_ENGINES])
+#ifdef __FreeBSD__
+#define SYS_getdents64 SYS_freebsd11_getdents
+#define ino64_t ino_t
+#endif
static int __gem_query(int fd, struct drm_i915_query *q)
{