Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608654 - x11-base/xorg-drivers-1.19 deselects x11-drivers/xf86-video-intel if i965 is selected
Summary: x11-base/xorg-drivers-1.19 deselects x11-drivers/xf86-video-intel if i965 is ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 611056
  Show dependency tree
 
Reported: 2017-02-08 19:32 UTC by Jan Psota
Modified: 2017-03-04 12:29 UTC (History)
1 user (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 Jan Psota 2017-02-08 19:32:11 UTC
video_cards_intel? ( !video_cards_i965? ( x11-drivers/xf86-video-intel ) )
...is guilty ;-)
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-02-08 19:39:24 UTC
This is by design

*** This bug has been marked as a duplicate of bug 592026 ***
Comment 2 Jan Psota 2017-02-09 09:07:05 UTC
(In reply to Brian Evans from comment #1)
> This is by design
> 
> *** This bug has been marked as a duplicate of bug 592026 ***

This "design" is broken. I have VIDEO_CARDS="amdgpu i915 i965 intel nouveau" because of many different machines booting of my NFS-root and I want to use VIDEO_CARDS for driver packages selection - because this idea is right.

"modesetting" driver works for (lspci):
    Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
and I can point it using /etc/X11/xorg.conf.d/
but for:
    Intel Corporation 82945G/GZ Integrated Graphics Controller
"intel" is still needed.

I have both of these on one NFS-root and I don't want to here "emerge x11-drivers/xf86-video-intel" because right VIDEO_CARDS setting should do it for me.
Comment 3 Matt Turner gentoo-dev 2017-02-09 14:31:49 UTC
Ugh. Yeah, I suppose you're right.

I guess if we also added a VIDEO_CARDS=i915 that explicitly depended on xf86-video-intel, it would solve the problem?
Comment 4 Jan Psota 2017-02-09 14:43:55 UTC
(In reply to Matt Turner from comment #3)
> Ugh. Yeah, I suppose you're right.
> 
> I guess if we also added a VIDEO_CARDS=i915 that explicitly depended on
> xf86-video-intel, it would solve the problem?

i915 - VIDEO_CARDS setting to build driver for Intel i915 video cards
...and I missed, that it's not used any more.

Maybe drop "i915" from profile too and treat "intel" and "i965" flag separately?
If "i965" is appropriate name in general (ikms?/ims for Intel modesetting driver?)
Comment 5 Matt Turner gentoo-dev 2017-03-01 17:31:28 UTC
(In reply to Jan Psota from comment #4)
> (In reply to Matt Turner from comment #3)
> > Ugh. Yeah, I suppose you're right.
> > 
> > I guess if we also added a VIDEO_CARDS=i915 that explicitly depended on
> > xf86-video-intel, it would solve the problem?
> 
> i915 - VIDEO_CARDS setting to build driver for Intel i915 video cards
> ...and I missed, that it's not used any more.
> 
> Maybe drop "i915" from profile too and treat "intel" and "i965" flag
> separately?
> If "i965" is appropriate name in general (ikms?/ims for Intel modesetting
> driver?)

Let me try to explain. https://wiki.gentoo.org/wiki/Intel#Feature_support probably helps too.

VIDEO_CARDS="i915" corresponds with Gen2 and Gen3 graphics.
VIDEO_CARDS="i965" corresponds with Gen4+ graphics.

VIDEO_CARDS="intel" used to enable support for all Intel graphics. We added i915/i965 VIDEO_CARD options to allow users to select a specific driver, since they're likely to not have use for both drivers. In the presence of VIDEO_CARDS="i915" or VIDEO_CARDS="i965", VIDEO_CARDS="intel" is supposed to degrade to those more specific options. In this way, you can specify VIDEO_CARDS="intel i965" and have everything work -- libdrm only has VIDEO_CARDS="intel" for instance.

The xf86-video-intel driver supports all of this hardware, but for various reasons we would rather make the default the modesetting driver for i965-class hardware (see bug 592026). xf86-video-intel is still necessary for i915 hardware.

If you specify VIDEO_CARDS="i915 i965" there's no way we can provide what we intend to be the defaults. VIDEO_CARDS="i915 ..." will install xf86-video-intel, which will be used by i965 hardware as well.

I think the best we can do is to make sure VIDEO_CARDS="i915 ..." depend on xf86-video-intel. i965 users will just get xf86-video-intel instead of modesetting in that case.
Comment 6 Matt Turner gentoo-dev 2017-03-04 04:38:52 UTC
Fixed by

commit 386569279088bcddda4a6656100e109c80a07a6c
Author: Kelly Ledford <stripes416@gmail.com>
Date:   Fri Mar 3 18:55:06 2017 -0800

    x11-base/xorg-drivers: Install xf86-video-intel for VIDEO_CARDS=i915.
Comment 7 Jan Psota 2017-03-04 12:29:45 UTC
Works for me :-)