graphics/libGL: Fix Gallium drivers on DragonFly (No-Op for FreeBSD)
This commit is contained in:
parent
65f503eb0a
commit
801d8368e2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371387
3 changed files with 37 additions and 2 deletions
|
@ -0,0 +1,11 @@
|
|||
--- src/gallium/auxiliary/os/os_misc.c.orig 2014-09-19 18:23:33 UTC
|
||||
+++ src/gallium/auxiliary/os/os_misc.c
|
||||
@@ -128,6 +128,8 @@ os_get_total_physical_memory(uint64_t *s
|
||||
mib[1] = HW_PHYSMEM64;
|
||||
#elif defined(PIPE_OS_FREEBSD)
|
||||
mib[1] = HW_REALMEM;
|
||||
+#elif defined(PIPE_OS_DRAGONFLY)
|
||||
+ mib[1] = HW_PHYSMEM;
|
||||
#else
|
||||
#error Unsupported *BSD
|
||||
#endif
|
|
@ -0,0 +1,11 @@
|
|||
--- src/gallium/auxiliary/util/u_cpu_detect.c.orig 2014-09-19 18:23:33 UTC
|
||||
+++ src/gallium/auxiliary/util/u_cpu_detect.c
|
||||
@@ -52,7 +52,7 @@
|
||||
#include <machine/cpu.h>
|
||||
#endif
|
||||
|
||||
-#if defined(PIPE_OS_FREEBSD)
|
||||
+#if defined(PIPE_OS_FREEBSD) || defined(PIPE_OS_DRAGONFLY)
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
|
@ -1,5 +1,5 @@
|
|||
--- ./src/gallium/include/pipe/p_config.h.orig 2014-01-23 18:02:42.000000000 +0100
|
||||
+++ ./src/gallium/include/pipe/p_config.h 2014-02-23 22:01:50.000000000 +0100
|
||||
--- src/gallium/include/pipe/p_config.h.orig 2014-08-14 17:22:24 UTC
|
||||
+++ src/gallium/include/pipe/p_config.h
|
||||
@@ -81,6 +81,13 @@
|
||||
#define PIPE_CC_SUNPRO
|
||||
#endif
|
||||
|
@ -14,3 +14,16 @@
|
|||
|
||||
/*
|
||||
* Processor architecture
|
||||
@@ -200,6 +207,12 @@
|
||||
#define PIPE_OS_ANDROID
|
||||
#endif
|
||||
|
||||
+#if defined(__DragonFly__)
|
||||
+#define PIPE_OS_DRAGONFLY
|
||||
+#define PIPE_OS_BSD
|
||||
+#define PIPE_OS_UNIX
|
||||
+#endif
|
||||
+
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#define PIPE_OS_FREEBSD
|
||||
#define PIPE_OS_BSD
|
||||
|
|
Loading…
Reference in a new issue