#1146470 mesa: NVK should not be enabled on ppc64

Package:
src:mesa
Source:
src:mesa
Submitter:
Jeroen Diederen
Date:
2026-09-02 12:05:01 UTC
Severity:
normal
Tags:
#1146470#5
Date:
2026-09-02 08:28:42 UTC
From:
To:
Dear maintainer,

The Debian Mesa packaging enables the NVK Vulkan driver on ppc64, but NVK does not build successfully on this architecture.

The failure is reproducible with both Mesa 26.1 and Mesa 26.2 when NVK is enabled for ppc64.

During the Mesa build, generation of the NVK OpenCL/SPIR-V module fails in mesa_clc:

FAILED: src/nouveau/vulkan/nvkcl.spv

(file=input,line=0,column=0,index=6): Invalid extended instruction import 'nepOs.LC'
(file=input,line=0,column=0,index=0): Failed to build module 1 out of 2.

The appropriate solution is to exclude ppc64 from the architectures on which Debian enables NVK.

I changed debian/rules so that NVK_ARCHS is:

NVK_ARCHS      = amd64 arm64 armhf i386 riscv64 x32

with ppc64 removed.

I have tested this change on real ppc64 hardware (PowerPC 970/iMac G5) with Mesa 26.2.1. The complete Debian package build succeeds with NVK excluded from ppc64.

This does not disable Vulkan support generally on ppc64. The other Vulkan drivers remain enabled, and mesa-vulkan-drivers is still built for ppc64.

The patch also removes the ppc64-specific code in regen_control which previously deleted the mesa-vulkan-drivers package from debian/control.

The attached patch is:

mesa-nvk-ppc64.patch

Please exclude ppc64 from NVK_ARCHS in the Debian Mesa packaging.


Best regards,
Jeroen Diederen

#1146470#10
Date:
2026-09-02 10:04:07 UTC
From:
To:
I forgot to add the tag 'ftbfs', as the mesa source file cannot be built
on ppc64.

Regards,
Jeroen