FS#67387 - [mesa] Add Zink support

Attached to Project: Arch Linux
Opened by Bob Bobber (bobberb) - Saturday, 25 July 2020, 04:02 GMT
Last edited by Laurent Carlier (lordheavy) - Friday, 31 July 2020, 16:16 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Zink has been added to mesa mainline. Please add zink to the compile-time DRI list.


<< -D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,swr,iris \
>> -D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,swr,iris,zink \

https://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/zink?id=6785d8c4601c6b8b1a5d8da8221313d1c332e7e5
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Friday, 31 July 2020, 16:16 GMT
Reason for closing:  Implemented
Additional comments about closing:  mesa-20.1.4-2
Comment by Laurent Carlier (lordheavy) - Tuesday, 28 July 2020, 06:18 GMT
Please test mesa-20.1.4-2
Comment by Bob Bobber (bobberb) - Tuesday, 28 July 2020, 06:57 GMT
Dear lordheavy,

I moved from mesa-git (AUR) 20.2.0_devel to the mesa-20.1.4-2 which I found in testing - thank you for the quick turnaround!

MESA booted to KDE without issue. To confirm zink was in working order, I ran 3 graphical programs, 2 native & 1 through wine: glxgears, glhexen2, and Ion Fury.exe.

For all commands I had the env:
MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_HUD=cpu+fps `program`

As glxgears and glhexen2 provide some easy log outputs, I was able to confirm zink was in use just as it was in mesa-git.

HOWEVER, I lost the GALLIUM_HUD! Looking back and forth between both PKGBUILDS, -D gallium-extra-hud=true exists in both. I see no obvious reason why I would lose my FPS and CPU monitoring HUD.

mesa-git provides libva-mesa-driver, mesa, mesa-vdpau, opencl-driver, opencl-mesa, opengl-driver, vulkan-driver, vulkan-intel, vulkan-mesa-layer, vulkan-radeon
mesa provides mesa-libgl, opengl-driver

Maybe, in removing mesa-git, I lost a file that allowed the GALLIUM_HUD to spawn.

Otherwise, 20.1.4-2 works without error. I have been using mesa-git for quite some time now so I do not know if it is normal for those users not to have the GALLIUM_HUD function.
Comment by Bob Bobber (bobberb) - Tuesday, 28 July 2020, 15:21 GMT
*accidentally refreshed and double posted please delete*
Comment by Magnus Boman (katt) - Wednesday, 29 July 2020, 00:19 GMT
@bobberb GALLIUM_HUD seems to work just fine here with 20.1.4-2. https://i.imgur.com/tluqDNq.png
Comment by Bob Bobber (bobberb) - Wednesday, 29 July 2020, 00:31 GMT
@katt well this is odd, GALLIUM_HUD only fails with zink selected, it's working as expected with LLVM. I wish I knew how to troubleshoot this further.
Comment by Bob Bobber (bobberb) - Wednesday, 29 July 2020, 02:04 GMT
# pacman -Qqn | pacman -S - && pacman -U mesa-20.1.4.-2-x86_64.pkg.tar.zst
fixed this issue for me.

@lordheavy everything is working as expected.

Loading...