Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mesa: add riscv target
@ 2024-11-17 12:32 saeziae
  0 siblings, 0 replies; only message in thread
From: saeziae @ 2024-11-17 12:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

There is a new pull request by saeziae against master on the void-packages repository

https://github.com/saeziae/void-packages patch/mesa
https://github.com/void-linux/void-packages/pull/53105

mesa: add riscv target
llvmpipe works on riscv64

after this patch (along with #53049) it will be able to start a graphical desktop on a risc-v machine.

#### Testing the changes
- I tested the changes in this PR: **YES** (ran glxinfo, glxgears, alacritty, firefox correctly)

#### Local build testing
- I built this PR locally for these architectures:
  - riscv64-glibc (cross)

[ci skip]

A patch file from https://github.com/void-linux/void-packages/pull/53105.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch/mesa-53105.patch --]
[-- Type: text/x-diff, Size: 1543 bytes --]

From eb60e1bcdebe4afa00d97867d0068a59dcb8009d Mon Sep 17 00:00:00 2001
From: Estela ad Astra <i@estela.moe>
Date: Fri, 15 Nov 2024 20:42:58 +0100
Subject: [PATCH 1/2] mesa: fix for riscv

---
 srcpkgs/mesa/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 0ff83ace1550a2..0d518d0a3ca493 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -33,7 +33,7 @@ build_options_default="wayland"
 # especially on big endian it's all kinds of broken, and e.g. on
 # 32-bit powerpc it does not work at all, so fall back to softpipe
 case "$XBPS_TARGET_MACHINE" in
-	i686*|x86_64*|aarch64*|ppc64le*|arm*) ;;
+	i686*|x86_64*|aarch64*|ppc64le*|arm*|riscv64*) ;;
 	*) configure_args+=" -Ddraw-use-llvm=false" ;;
 esac
 

From f05c6468881ad9a73f906ec59f81555097e79330 Mon Sep 17 00:00:00 2001
From: Estela ad Astra <i@estela.moe>
Date: Sun, 17 Nov 2024 13:19:00 +0100
Subject: [PATCH 2/2] xorg-video-drivers: add riscv

---
 srcpkgs/xorg-video-drivers/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/xorg-video-drivers/template b/srcpkgs/xorg-video-drivers/template
index d95c6d4f05f457..63ffd162624d57 100644
--- a/srcpkgs/xorg-video-drivers/template
+++ b/srcpkgs/xorg-video-drivers/template
@@ -14,6 +14,6 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 
 case "$XBPS_TARGET_MACHINE" in
-	armv[56]*|aarch64*|mips*) ;;
+	armv[56]*|aarch64*|mips*|riscv*) ;;
 	*) depends+=" xf86-video-ati xf86-video-amdgpu xf86-video-nouveau" ;;
 esac

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-17 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-17 12:32 [PR PATCH] mesa: add riscv target saeziae

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).