summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_screen.c
diff options
context:
space:
mode:
authorDennis Bonke <dennis@managarm.org>2023-04-16 20:33:01 +0200
committerMarge Bot <emma+marge@anholt.net>2023-11-20 13:35:19 +0000
commit653405ee08e76173f8640adaa1e46de94f5bafa4 (patch)
treeb62ceb08e20f5985a60de09b888e4c8e4589e200 /src/gallium/auxiliary/util/u_screen.c
parent0e68dd1a522380d0c4e59902be6f22c13c493c07 (diff)
mesa: add managarm support
Co-authored-by: Alexander Richards <electrodeyt@gmail.com> Signed-off-by: Alexander Richards <electrodeyt@gmail.com> Signed-off-by: Dennis Bonke <dennis@managarm.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25818>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 6ce7179c218..66efbddf04c 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -440,7 +440,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
return 0;
case PIPE_CAP_DMABUF:
-#if defined(HAVE_LIBDRM) && (DETECT_OS_LINUX || DETECT_OS_BSD)
+#if defined(HAVE_LIBDRM) && (DETECT_OS_LINUX || DETECT_OS_BSD || DETECT_OS_MANAGARM)
fd = pscreen->get_screen_fd(pscreen);
if (fd != -1 && (drmGetCap(fd, DRM_CAP_PRIME, &cap) == 0))
return cap;