Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669834 - media-libs/mesa: make USE defaults sane
Summary: media-libs/mesa: make USE defaults sane
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-28 07:44 UTC by Mikle Kolyada
Modified: 2021-03-16 11:28 UTC (History)
5 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 Mikle Kolyada archtester Gentoo Infrastructure gentoo-dev Security 2018-10-28 07:44:39 UTC
Currently we have +gallium and +llvm defaults for everyone, even if a user has an Intel card where both gallium and llvm are not needed, so people have to disab;e it manually, which is quite uncomfortable. So maybe we need to make it driver-dependent somehow, it crashes default flexibility a lot.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2018-10-28 22:23:28 UTC
(In reply to Mikle Kolyada from comment #0)
> it crashes default flexibility a lot.

Can you explain what you mean by that?

Btw. Intel is working on a gallium driver named iris.
Comment 2 Matt Turner gentoo-dev 2018-10-28 22:39:18 UTC
I think the idea we came up with on IRC was to have VIDEO_CARDS=... control whether classic/gallium are enabled.

I'm thinking of this as a follow-on simplification to commit a0ece8925e0d757751a9b9d26eeae2796f5aa4b8
Comment 3 Mikle Kolyada archtester Gentoo Infrastructure gentoo-dev Security 2018-11-06 18:00:15 UTC
(In reply to Matt Turner from comment #2)
> I think the idea we came up with on IRC was to have VIDEO_CARDS=... control
> whether classic/gallium are enabled.
> 
> I'm thinking of this as a follow-on simplification to commit
> a0ece8925e0d757751a9b9d26eeae2796f5aa4b8

right
Comment 4 Matt Turner gentoo-dev 2019-06-17 14:36:36 UTC
Looking into this, there are a couple of issues:

(1) gallium-specific dependencies:

    gallium? (
        unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
        llvm? (
            video_cards_radeonsi? (
                virtual/libelf:0=[${MULTILIB_USEDEP}]
            )
            video_cards_r600? (
                virtual/libelf:0=[${MULTILIB_USEDEP}]
            )
            video_cards_radeon? (
                virtual/libelf:0=[${MULTILIB_USEDEP}]
            )
        )
        lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
        opencl? (
                    dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
                    dev-libs/libclc
                    virtual/libelf:0=[${MULTILIB_USEDEP}]
                )
        vaapi? (
            >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
            video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
        )
        vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
        xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
    )

it would suck to list those deps for each driver that is a gallium driver, but I can't come up with any other way.

(2) gallium vs classic choice for i915/swrast/osmesa (and i965 vs iris at some point). I guess we can have separate VIDEO_CARD options for these?