Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920752

Summary: media-libs/mesa: add a use flag to disable swrast
Product: Gentoo Linux Reporter: om3i <r9ku1q>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: UNCONFIRMED ---    
Severity: enhancement CC: jstein, r9ku1q
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=920692
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: add VIDEO_CARDS=swrast
add VIDEO_CARDS=swrast

Description om3i 2023-12-27 02:21:40 UTC
Almost no one uses it, but it unconditionally increases build time and disk usage.

Reproducible: Always
Comment 1 Matt Turner gentoo-dev 2023-12-27 04:39:52 UTC
Can you quantify any of that?
Comment 2 om3i 2023-12-27 07:12:05 UTC
All major pc gpu vendors have drivers available.
To see if the hardware driver is being used instead of swrast, rename
/usr/lib*/dri/*swrast_dri.so
before starting display server, or examine the results of
grep _dri /proc/'pidof Xorg'/maps.
Comment 3 om3i 2023-12-30 19:23:13 UTC
Created attachment 881025 [details, diff]
add VIDEO_CARDS=swrast
Comment 4 Matt Turner gentoo-dev 2024-01-11 18:25:33 UTC
I'm planning to add this with mesa-24.
Comment 5 om3i 2024-01-14 23:19:31 UTC
Created attachment 882298 [details, diff]
add VIDEO_CARDS=swrast

Fix osmesa
Comment 6 Larry the Git Cow gentoo-dev 2024-02-01 19:49:48 UTC
The bug has been closed via the following commit(s):

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

commit 46b2f0ab301a02e8763e461140b317e6dcd707bc
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-02-01 19:29:17 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-02-01 19:49:41 +0000

    media-libs/mesa: Add VIDEO_CARDS=swrast
    
    Replaces VIDEO_CARDS=lavapipe; controls building the swrast/llvmpipe
    driver for OpenGL as well as the lavapipe driver for Vulkan.
    
    Closes: https://bugs.gentoo.org/920752
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

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

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

commit 484465188dd6d6b35a2b4aa69d25e0e9a6b1b6bd
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-02-01 19:29:25 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-02-01 19:49:40 +0000

    profiles: Add VIDEO_CARDS=swrast description
    
    Bug: https://bugs.gentoo.org/920752
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/desc/video_cards.desc | 1 +
 1 file changed, 1 insertion(+)
Comment 7 Larry the Git Cow gentoo-dev 2024-02-01 23:43:12 UTC
The bug has been referenced in the following commit(s):

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

commit e3473afeac9dbe9e820f658c783c46416ee30d8c
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-02-01 23:40:16 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-02-01 23:42:57 +0000

    media-libs/mesa: Revert "Add VIDEO_CARDS=swrast"
    
    This reverts commit 46b2f0ab301a02e8763e461140b317e6dcd707bc.
    
    Users of the proprietary NVIDIA driver will likely have media-libs/mesa
    installed with no VIDEO_CARDS set, and without a driver present the
    configuration step fails.
    
    Bug: https://bugs.gentoo.org/920752
    Closes: https://bugs.gentoo.org/923494
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/mesa/mesa-24.0.0.ebuild | 9 ++++-----
 media-libs/mesa/mesa-9999.ebuild   | 9 ++++-----
 2 files changed, 8 insertions(+), 10 deletions(-)
Comment 8 Greg Kubaryk 2024-02-02 22:33:13 UTC
reopening since the commits were reverted