Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888057 - >=media-libs/mesa-22.3.0 breaks Vulkan on Ivy Bridge-Broadwell
Summary: >=media-libs/mesa-22.3.0 breaks Vulkan on Ivy Bridge-Broadwell
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-23 06:02 UTC by Ethan Steinbrecher
Modified: 2023-03-10 05:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Working ebuild (mesa-22.3.1-r1.ebuild,12.18 KB, text/plain)
2022-12-23 17:47 UTC, Ethan Steinbrecher
Details
ebuild patch to add hasvk (mesa_add_hasvk.patch,523 bytes, patch)
2023-03-09 14:09 UTC, Ethan Steinbrecher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ethan Steinbrecher 2022-12-23 06:02:21 UTC
An upstream change to Mesa has caused Vulkan to break on Intel iGPUs from Ivy Bridge to Broadwell. The support for Vulkan on those iGPUs have been split from ANV to a new driver called "HasVK". This change has not been accommodated for on the current ebuilds, and the new driver can be compiled with the "-D vulkan-drivers=intel,intel_hasvk" flag according to the upstream.

Reproducible: Always

Steps to Reproduce:
1. Emerge >=media-libs/mesa-22.3.0 on a Ivy Bridge/Haswell/Broadwell CPU
2. Run a Vulkan application
Actual Results:  
The Vulkan driver fails to load due to a missing GPU error

Expected Results:  
The Vulkan driver renders the application with a warning of incomplete support 

Related Phoronix article: https://www.phoronix.com/news/Intel-ANV-HASVK-Split-Merged

The affecting commit: https://gitlab.freedesktop.org/mesa/mesa/-/commit/50013ca9a57c42114044f593c981bbad8c405cc9
Comment 1 Ethan Steinbrecher 2022-12-23 17:47:49 UTC
Created attachment 844805 [details]
Working ebuild

This ebuild from my personal overlay builds AVN and HasVK when VIDEO_CARDS=intel
Comment 2 Pulkit Sukhija 2023-01-16 19:39:16 UTC
any update on this bug? since mesa package got a recent update to 22.3.3  in amd64 testing branch
Comment 3 Pulkit Sukhija 2023-03-09 11:46:26 UTC
it's been months, is this bug not going to be fixed at all?
Comment 4 Ethan Steinbrecher 2023-03-09 14:09:27 UTC
Created attachment 856947 [details, diff]
ebuild patch to add hasvk
Comment 5 Ethan Steinbrecher 2023-03-09 14:29:15 UTC
(In reply to Pulkit Sukhija from comment #3)
> it's been months, is this bug not going to be fixed at all?

I assume that it may be due to the X11 project developers not having the afflicted hardware. This issue can be reciprocated on a Thinkpad T440p variant without a Nvidia dGPU.
Comment 6 Pulkit Sukhija 2023-03-09 14:32:15 UTC
(In reply to Ethan Steinbrecher from comment #5)
> (In reply to Pulkit Sukhija from comment #3)
> > it's been months, is this bug not going to be fixed at all?
> 
> I assume that it may be due to the X11 project developers not having the
> afflicted hardware. This issue can be reciprocated on a Thinkpad T440p
> variant without a Nvidia dGPU.

hmmm, could be.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 00:17:29 UTC
(In reply to Pulkit Sukhija from comment #3)
> it's been months, is this bug not going to be fixed at all?

Comments like this tend to be counterproductive. You can say "ping" on a bug or ask if there's anything you can do, if you must though.

(In reply to Pulkit Sukhija from comment #6)
> (In reply to Ethan Steinbrecher from comment #5)
> > (In reply to Pulkit Sukhija from comment #3)
> > > it's been months, is this bug not going to be fixed at all?
> > 
> > I assume that it may be due to the X11 project developers not having the
> > afflicted hardware. This issue can be reciprocated on a Thinkpad T440p
> > variant without a Nvidia dGPU.
> 
> hmmm, could be.

I don't think this adds anything.

Anyway, I appreciate the frustration, and I'll commit the patch now after discussing it w/ matt, it fixes vulkan on my laptop
Comment 8 Larry the Git Cow gentoo-dev 2023-03-10 00:18:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6e9217db597a0d76c7c81164da57b29187ac72

commit 3c6e9217db597a0d76c7c81164da57b29187ac72
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-10 00:17:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-10 00:17:47 +0000

    media-libs/mesa: build intel_hasvk too for vulkan
    
    This fixes Vulkan on Ivy Bridge up to Broadwell.
    
    Closes: https://bugs.gentoo.org/888057
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/mesa/{mesa-22.3.7.ebuild => mesa-22.3.7-r1.ebuild} | 2 +-
 media-libs/mesa/{mesa-23.0.0.ebuild => mesa-23.0.0-r1.ebuild} | 2 +-
 media-libs/mesa/mesa-9999.ebuild                              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 00:19:04 UTC
Thank you!
Comment 10 Pulkit Sukhija 2023-03-10 05:56:14 UTC
(In reply to Sam James from comment #7)
> (In reply to Pulkit Sukhija from comment #3)
> > it's been months, is this bug not going to be fixed at all?
> 
> Comments like this tend to be counterproductive. You can say "ping" on a bug
> or ask if there's anything you can do, if you must though.
> 
sure, will do that from now on. 

> (In reply to Pulkit Sukhija from comment #6)
> > (In reply to Ethan Steinbrecher from comment #5)
> > > (In reply to Pulkit Sukhija from comment #3)
> > > > it's been months, is this bug not going to be fixed at all?
> > > 
> > > I assume that it may be due to the X11 project developers not having the
> > > afflicted hardware. This issue can be reciprocated on a Thinkpad T440p
> > > variant without a Nvidia dGPU.
> > 
> > hmmm, could be.
> 
> I don't think this adds anything.
> 
> Anyway, I appreciate the frustration, and I'll commit the patch now after
> discussing it w/ matt, it fixes vulkan on my laptop

thank you!