* update mesa-amber to 21.3.9-4.1
This commit is contained in:
parent
e066fb3383
commit
be8e9c8c86
37
mesa-amber/0001-big-endian-flipping.patch
Normal file
37
mesa-amber/0001-big-endian-flipping.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From f1e0d76264491a8d8f99a0041b1a36cf9752fd28 Mon Sep 17 00:00:00 2001
|
||||
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
|
||||
Date: Thu, 27 Feb 2020 04:24:52 -0600
|
||||
Subject: [PATCH] mesa: Support flipping three-channel formats
|
||||
|
||||
Test system: POWER9 ppc64 (BE) system with a Radeon R5 230.
|
||||
|
||||
Before this commit, starting Xorg caused this message:
|
||||
Assertion failed: !"Invalid array format" (../src/mesa/main/formats.c: _mesa_array_format_flip_channels: 421)
|
||||
|
||||
After this commit, Xorg starts successfully.
|
||||
---
|
||||
src/mesa/main/formats.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
|
||||
index 370859d37ca..2e7d5d7f05e 100644
|
||||
--- a/src/mesa/main/formats.c
|
||||
+++ b/src/mesa/main/formats.c
|
||||
@@ -419,6 +419,14 @@ _mesa_array_format_flip_channels(mesa_array_format format)
|
||||
return format;
|
||||
}
|
||||
|
||||
+ if (num_channels == 3) {
|
||||
+ static const uint8_t flip[6] = { 2, 1, 0, 3, 4, 5 };
|
||||
+ _mesa_array_format_set_swizzle(&format,
|
||||
+ flip[swizzle[0]], flip[swizzle[1]],
|
||||
+ flip[swizzle[2]], flip[swizzle[3]]);
|
||||
+ return format;
|
||||
+ }
|
||||
+
|
||||
if (num_channels == 4) {
|
||||
static const uint8_t flip[6] = { 3, 2, 1, 0, 4, 5 };
|
||||
_mesa_array_format_set_swizzle(&format,
|
||||
--
|
||||
2.25.1
|
||||
|
@ -6,7 +6,7 @@
|
||||
pkgname=mesa-amber
|
||||
pkgdesc="classic OpenGL (non-Gallium3D) drivers"
|
||||
pkgver=21.3.9
|
||||
pkgrel=4
|
||||
pkgrel=4.1
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
|
||||
'libxdamage' 'wayland' 'wayland-protocols' 'zstd' 'elfutils'
|
||||
@ -14,15 +14,18 @@ makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence
|
||||
url="https://www.mesa3d.org/"
|
||||
license=('custom')
|
||||
source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
|
||||
LICENSE)
|
||||
LICENSE
|
||||
0001-big-endian-flipping.patch)
|
||||
sha512sums=('4cec6f4f50f444fcd327f7c40f8899c2f265e348e121455262b540b1f890a1468bbea59965af0876c548fa97aa0a05a1b23fa6ca7d308bd60328cfdeab757684'
|
||||
'SKIP'
|
||||
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7')
|
||||
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7'
|
||||
'3417e5c6d7ec564178e1d72431042b0a6ba659321f13a3dda81eda5fa0f2c8bc7c6972cb8266aea84ab05976ffb161659e9988c50ecc418e8bc1e1ce8f93a65f')
|
||||
#validpgpkeys=('57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom <eric@engestrom.ch>
|
||||
validpgpkeys=('71C4B75620BC75708B4BDB254C95FAAB3EB073EC') # Dylan Baker <dylan@pnwbakers.com>
|
||||
|
||||
prepare() {
|
||||
cd mesa-$pkgver
|
||||
patch -Np1 -i ${srcdir}/0001-big-endian-flipping.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user