Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920752 - media-libs/mesa: add a use flag to disable swrast
Summary: media-libs/mesa: add a use flag to disable swrast
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-27 02:21 UTC by om3i
Modified: 2024-02-02 22:33 UTC (History)
2 users (show)

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


Attachments
add VIDEO_CARDS=swrast (mesa-23.3.2_swrast.patch,1.40 KB, patch)
2023-12-30 19:23 UTC, om3i
Details | Diff
add VIDEO_CARDS=swrast (mesa-23.3.3_swrast.patch,1.53 KB, patch)
2024-01-14 23:19 UTC, om3i
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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