AlmaLinux changes: Enable vc4 and v3d for Raspberry Pi graphics in AlmaLinux (Resolves: https://github.com/AlmaLinux/raspberry-pi/issues/32)

This commit is contained in:
Koichiro Iwao 2025-09-27 02:38:54 +00:00 committed by root
commit 37a28f9fd0
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,16 @@
diff -up mesa-25.0.7/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c.dma mesa-25.0.7/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
--- mesa-25.0.7/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c.dma 2025-05-29 01:20:23.000000000 +1000
+++ mesa-25.0.7/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c 2025-09-26 12:32:52.240568901 +1000
@@ -1321,8 +1321,10 @@ emit_load_const(struct lp_build_nir_cont
for (unsigned i = 0; i < instr->def.num_components; i++) {
outval[i] = lp_build_const_int_vec(bld_base->base.gallivm, int_bld->type,
- bits == 32 ? instr->value[i].u32
- : instr->value[i].u64);
+ bits == 8 ? instr->value[i].u8 :
+ bits == 16 ? instr->value[i].u16 :
+ bits == 32 ? instr->value[i].u32 :
+ instr->value[i].u64);
}
for (unsigned i = instr->def.num_components; i < NIR_MAX_VEC_COMPONENTS; i++) {
outval[i] = NULL;

View File

@ -145,6 +145,9 @@ Patch50: 0001-Revert-hasvk-elk-stop-turning-load_push_constants-in.patch
# to fix firefox browser issue with NV dGFX driver
Patch60: 32886.patch
# Fix s390 loop counters
Patch70: 0001-gallivm-handle-u8-u16-const-loads-properly-on-big-en.patch
BuildRequires: meson
BuildRequires: gcc
BuildRequires: gcc-c++