Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948591 - media-libs/mesa-24.3.3 breaks acceleration
Summary: media-libs/mesa-24.3.3 breaks acceleration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 948623 949346 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-01-22 19:37 UTC by merlyn
Modified: 2025-02-06 03:32 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description merlyn 2025-01-22 19:37:22 UTC
I am using gentoo kerel 6.6.62 and latest X11 server Everything was fine until switch to mesa 24.3.3 from 24.2.8. Now I only have llvmpipe software rendering. My video card is quatro 1000m on a laptop I use nouveau driver. Thxs


I think the this might be the problem;
Adam Jackson (8):

    meson: Introduce the legacy-x11 option
    glx: Move DRI2 client support behind legacy-x11
    egl/x11: Move DRI2 client support behind legacy-x11
    gallium/video: Move DRI2 support behind legacy-x11
    rusticl: Add clCreateSubDevices stub
    vtn: Handle SPV_INTEL_optnone
    rusticl: Enable out-of-order execution
    glx: Fix the GLX_EXT_swap_control_tear drawable attributes

Maybe a legacy-x11 use flag should be added?

Thxs

Merlyn,
Comment 1 merlyn 2025-01-22 23:38:24 UTC
Ok, I seemed to have worked it out.
nouveau requires dri2 which has been disabled in mesa =>24.3.0
So either mesa needs the legacy-x11 option enabled, which would re-enable legacy dri2, or nouveau needs to enable dri3.

Another way is to remove nouveau all together and let the xserver use DDX find and config everything.

please use this to help others!

Drforbin
Comment 2 Matt Turner gentoo-dev 2025-01-23 02:28:40 UTC
Oh, interesting. Thanks. I'll investigate.
Comment 3 Matt Turner gentoo-dev 2025-01-23 03:08:14 UTC
Did you confirm that building with `-Dlegacy-x11=dri2` fixes your issue?

In the default case (`-Dlegacy-x11=none`), what is the output of `LIBGL_DEBUG=verbose glxgears`? I'm wondering what error message we get.
Comment 4 merlyn 2025-01-23 03:28:59 UTC
No, I removed nouveau which forced the xserver to use ddx to modeset etc.
When I donot do this all I get is the software pipe 
llvm pipe. 

This is from glxinfo
Comment 5 merlyn 2025-01-23 13:46:07 UTC
I would be curious if/when you confirm
Comment 6 Matt Turner gentoo-dev 2025-01-23 16:15:41 UTC
According to upstream, this is a problem when the xf86-video-* driver doesn't support/enable DRI3, and xf86-video-nouveau doesn't enable DRI3 by default.

I suspect the best thing to do is to patch xf86-video-nouveau to enable DRI3 by default.

(In reply to merlyn from comment #5)
> I would be curious if/when you confirm

I don't have a nouveau system to test with. It would be particularly helpful if you could test suggestions to resolve the bug you reported...
Comment 7 merlyn 2025-01-23 20:26:12 UTC
That's fine. What would you like me to do?
I'll help in anyway I can.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-24 09:01:09 UTC
(In reply to merlyn from comment #7)
> That's fine. What would you like me to do?
> I'll help in anyway I can.

Please try what Matt suggested in https://bugs.gentoo.org/948591#c3 (both the option and also the command output).

Let us know if you need help doing that.

For the option part: you can try the option on the command line with a hack, like this: MYMESONARGS="-Dlegacy-x11=dri2` emerge -v1 mesa.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-24 09:01:19 UTC
make that: MYMESONARGS="-Dlegacy-x11=dri2" emerge -v1 mesa.
Comment 10 merlyn 2025-01-25 01:24:38 UTC
Ok. 
MYMESONARGS="-Dlegacy-x11=dri2` emerge -v1 mesa.
That environmental will pass the option to config?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-25 07:29:16 UTC
(In reply to merlyn from comment #10)
> Ok. 
> MYMESONARGS="-Dlegacy-x11=dri2` emerge -v1 mesa.
> That environmental will pass the option to config?

Yes.
Comment 12 LABBE Corentin 2025-01-25 12:35:33 UTC
I hit this issue via https://bugs.gentoo.org/948623

Doing MYMESONARGS="-Dlegacy-x11=dri2` emerge -v1 mesa lead to a working setup.
Thanks
Comment 13 LABBE Corentin 2025-01-25 12:36:14 UTC
*** Bug 948623 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2025-02-03 17:13:03 UTC
The bug has been closed via the following commit(s):

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

commit bb817f378ce3ca84c2682570a1e821f1239f0f68
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2025-02-03 17:08:59 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2025-02-03 17:12:58 +0000

    media-libs/mesa: Backport fixes from -9999
    
    Closes: https://bugs.gentoo.org/948591
    Closes: https://bugs.gentoo.org/949118
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/{mesa-24.3.4.ebuild => mesa-24.3.4-r1.ebuild} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=936f4af27c29cde075c7540cc6cacf60dc677f1b

commit 936f4af27c29cde075c7540cc6cacf60dc677f1b
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2025-02-03 16:42:39 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2025-02-03 17:12:58 +0000

    media-libs/mesa: Build with -Dlegacy-x11=dri2
    
    This is required for users of xf86-video-nouveau and xf86-video-intel.
    
    Bug: https://bugs.gentoo.org/948591
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 15 Matt Turner gentoo-dev 2025-02-06 03:32:09 UTC
*** Bug 949346 has been marked as a duplicate of this bug. ***