pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
MesaLib: build more arm-specific gallium drivers
Module Name: pkgsrc-wip
Committed By: Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By: tnn
Date: Tue Jul 20 14:11:25 2021 +0200
Changeset: 89c49747f92707a8651cec78f9e7e675e448069c
Modified Files:
MesaLib/PLIST
MesaLib/distinfo
Added Files:
MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c
Log Message:
MesaLib: build more arm-specific gallium drivers
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=89c49747f92707a8651cec78f9e7e675e448069c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
MesaLib/PLIST | 6 +++++
MesaLib/distinfo | 1 +
...c_gallium_drivers_freedreno_freedreno__screen.c | 30 ++++++++++++++++++++++
3 files changed, 37 insertions(+)
diffs:
diff --git a/MesaLib/PLIST b/MesaLib/PLIST
index 5f065a7bb5..cd196b7f74 100644
--- a/MesaLib/PLIST
+++ b/MesaLib/PLIST
@@ -29,6 +29,7 @@ ${PLIST.kms}include/xa_composite.h
${PLIST.kms}include/xa_context.h
${PLIST.kms}include/xa_tracker.h
${PLIST.arm}lib/dri/armada-drm_dri.so
+${PLIST.arm}lib/dri/etnaviv_dri.so
${PLIST.arm}lib/dri/exynos_dri.so
${PLIST.arm}lib/dri/hx8357d_dri.so
${PLIST.i915}lib/dri/i915_dri.so
@@ -38,15 +39,19 @@ ${PLIST.arm}lib/dri/ili9341_dri.so
${PLIST.arm}lib/dri/imx-dcss_dri.so
${PLIST.arm}lib/dri/imx-drm_dri.so
${PLIST.arm}lib/dri/ingenic-drm_dri.so
+${PLIST.arm}lib/dri/kgsl_dri.so
${PLIST.kms}lib/dri/kms_swrast_dri.so
+${PLIST.arm}lib/dri/lima_dri.so
${PLIST.arm}lib/dri/mcde_dri.so
${PLIST.arm}lib/dri/mediatek_dri.so
${PLIST.arm}lib/dri/meson_dri.so
${PLIST.arm}lib/dri/mi0283qt_dri.so
+${PLIST.arm}lib/dri/msm_dri.so
${PLIST.arm}lib/dri/mxsfb-drm_dri.so
${PLIST.nouveau}lib/dri/nouveau_dri.so
${PLIST.nouveau}${PLIST.vaapi}lib/dri/nouveau_drv_video.so
${PLIST.nouveau_dri}lib/dri/nouveau_vieux_dri.so
+${PLIST.arm}lib/dri/panfrost_dri.so
${PLIST.arm}lib/dri/pl111_dri.so
${PLIST.r200}lib/dri/r200_dri.so
${PLIST.r300}lib/dri/r300_dri.so
@@ -62,6 +67,7 @@ ${PLIST.arm}lib/dri/st7735r_dri.so
${PLIST.arm}lib/dri/stm_dri.so
${PLIST.arm}lib/dri/sun4i-drm_dri.so
lib/dri/swrast_dri.so
+${PLIST.arm}lib/dri/tegra_dri.so
${PLIST.arm}lib/dri/vc4_dri.so
${PLIST.svga}lib/dri/vmwgfx_dri.so
${PLIST.kms}lib/libEGL.so
diff --git a/MesaLib/distinfo b/MesaLib/distinfo
index 15fee942c4..9a534b6d0a 100644
--- a/MesaLib/distinfo
+++ b/MesaLib/distinfo
@@ -11,6 +11,7 @@ SHA1 (patch-src_egl_drivers_dri2_platform__x11.c) = ccf7c3ba7bdac39f9924102868f3
SHA1 (patch-src_egl_main_eglglobals.c) = 0d52014f52e62fc5fa6650336ddb0011ecf331e6
SHA1 (patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c) = f913b779404e6bd8ae707a4fd66eb7c1dca9b311
SHA1 (patch-src_gallium_auxiliary_rbug_rbug__texture.c) = 57d831b1001419191a27c05d9cb7734481372d27
+SHA1 (patch-src_gallium_drivers_freedreno_freedreno__screen.c) = 3fc96adf9b4a1c605f7a358fdb225876109ad2d5
SHA1 (patch-src_gallium_drivers_llvmpipe_lp__memory.c) = ca3c1b317c41f6ae56a08272ffabdecb38fea2ec
SHA1 (patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c) = 04f95784c3270c9bb7e95377982e217962481525
SHA1 (patch-src_gallium_drivers_nouveau_nv50_nv84__video.c) = 1b4239fe053523835ecac006894bdb0cde0ee626
diff --git a/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c b/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c
new file mode 100644
index 0000000000..8b488c5ec4
--- /dev/null
+++ b/MesaLib/patches/patch-src_gallium_drivers_freedreno_freedreno__screen.c
@@ -0,0 +1,30 @@
+$NetBSD$
+
+sysinfo(2) is for Linux only
+
+--- src/gallium/drivers/freedreno/freedreno_screen.c.orig 2021-07-14 20:04:47.137926600 +0000
++++ src/gallium/drivers/freedreno/freedreno_screen.c
+@@ -42,7 +42,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "drm-uapi/drm_fourcc.h"
++#if !defined(__NetBSD__)
+ #include <sys/sysinfo.h>
++#endif
+
+ #include "freedreno_fence.h"
+ #include "freedreno_query.h"
+@@ -1010,9 +1012,13 @@ fd_screen_create(struct fd_device *dev,
+
+ screen->has_syncobj = fd_has_syncobj(screen->dev);
+
++#if defined(__NetBSD__)
++ screen->ram_size = 512 * 1024 * 1024; /* XXX should use sysctl hw.physmem64 here */
++#else
+ struct sysinfo si;
+ sysinfo(&si);
+ screen->ram_size = si.totalram;
++#endif
+
+ DBG("Pipe Info:");
+ DBG(" GPU-id: %d", screen->gpu_id);
Home |
Main Index |
Thread Index |
Old Index