Summary: | media-libs/mesa-8.1_rc1_pre20120814 installs i965 without setting on VIDEO_CARDS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luis Medinas <lmedinas> |
Component: | New packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | charles17, derk.tebokkel |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Luis Medinas
2012-08-18 00:48:06 UTC
um .. ebuild has alway built both for the intel flag as it is supposed to! If you want exclusivity use i915 or i965 flag. works as designed .. read the ebuild .. (In reply to comment #1) > um .. ebuild has alway built both for the intel flag as it is supposed to! > If you want exclusivity use i915 or i965 flag. works as designed .. read the > ebuild .. Hey i don't agree with you. Im a user not a ebuild developer i should be able to not be confused by any of these flags. If xorg-x11 uses intel mesa should use it too for i915 not for i965. sorry but the intel, i915 and i965 use flags for mesa are completely different from the kernel i915 module required for use of the xf86-video-intel software which does not use any of the intel,i915 or i965 use flags. So there is no problem with the ebuilds. (In reply to comment #2) > (In reply to comment #1) > > um .. ebuild has alway built both for the intel flag as it is supposed to! > > If you want exclusivity use i915 or i965 flag. works as designed .. read the > > ebuild .. > > Hey i don't agree with you. Im a user not a ebuild developer i should be > able to not be confused by any of these flags. If xorg-x11 uses intel mesa > should use it too for i915 not for i965. The 'intel' video card USE flag turns on the two Intel drivers i915 and i965 (and i915g if you have Gallium enabled). i915 turns on i915, and i965 turns on i965. The i9*5 flags allow you to build one without the other. What exactly do you think these flags should do differently? (In reply to comment #4) > (In reply to comment #2) > > (In reply to comment #1) > > > um .. ebuild has alway built both for the intel flag as it is supposed to! > > > If you want exclusivity use i915 or i965 flag. works as designed .. read the > > > ebuild .. > > > > Hey i don't agree with you. Im a user not a ebuild developer i should be > > able to not be confused by any of these flags. If xorg-x11 uses intel mesa > > should use it too for i915 not for i965. > > The 'intel' video card USE flag turns on the two Intel drivers i915 and i965 > (and i915g if you have Gallium enabled). i915 turns on i915, and i965 turns > on i965. The i9*5 flags allow you to build one without the other. > > What exactly do you think these flags should do differently? I only think that all flags on gentoo portage should be uniform. I mean if you set intel for everything i expect to have the same effect on Mesa. I mean or "intel" use flag doesnt exist or instead it builds i915 or i965 but not both. What happens now is that i have 3d broken because of this flag mess. LIBGL_DEBUG=verbose totem libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so libGL error: dlopen /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory) libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so libGL: Can't open configuration file /home/metalgod/.drirc: No such file or directory. libGL: Can't open configuration file /home/metalgod/.drirc: No such file or directory. I think the description of the use_expand flags is maybe not precise enough. > # equery uses mesa > video_cards_i915 : VIDEO_CARDS setting to build driver for Intel i915 video cards > video_cards_i965 : VIDEO_CARDS setting to build driver for Intel i965 video cards > video_cards_intel : VIDEO_CARDS setting to build driver for Intel video cards could maybe be changed to > video_cards_i915 : VIDEO_CARDS setting to build driver for Intel i915/945 and earlier video cards > video_cards_i965 : VIDEO_CARDS setting to build driver for Intel i965, G31/Q33 and later video cards > video_cards_intel : VIDEO_CARDS setting to build driver for all supported Intel video cards That way, there would be no confusion about the flags and their effects any more. (In reply to comment #5) > I only think that all flags on gentoo portage should be uniform. I mean if > you set intel for everything i expect to have the same effect on Mesa. I > mean or "intel" use flag doesnt exist or instead it builds i915 or i965 but > not both. Sorry, I still don't understand. What do you think the following flag combinations should build? VIDEO_CARDS="intel" VIDEO_CARDS="intel i965" VIDEO_CARDS="i965" You mention (In reply to comment #6) > What happens now is that i have 3d broken because of this flag mess. > > LIBGL_DEBUG=verbose totem > libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so > libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so > libGL error: dlopen /usr/lib64/dri/i965_dri.so failed > (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or > directory) > libGL error: unable to load driver: i965_dri.so > libGL error: driver pointer missing > libGL error: failed to load driver: i965 > libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so > libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so > libGL: Can't open configuration file /home/metalgod/.drirc: No such file or > directory. > libGL: Can't open configuration file /home/metalgod/.drirc: No such file or > directory. So the problem is that you're missing i965? I don't understand what is confusing you about the VIDEO_CARD settings. i have a i915 card and i have this variables: VIDEO_CARDS="intel nvidia" i was surprised to see that totem failed to start (actually i got a segfault) because it tries to use i965. I was surprised again why i have i965 if i don't have any USE flag to enable it. After your comment i realized that i should add i915 to my VIDEO_CARDS to have MESA build with i915 support only. But after this 3D support got broken and i add to fallback to remove i915 from VIDEO_CARDS. Am i the only one with this problem ? I guess not since the USE flags are really easy to messed up on MESA. My feeling is that you should remove intel use flag and make the whole gentoo portage ebuilds use i915. Really the USE flags need consistence. (In reply to comment #9) > i have a i915 card and i have this variables: VIDEO_CARDS="intel nvidia" > > i was surprised to see that totem failed to start (actually i got a > segfault) because it tries to use i965. I was surprised again why i have > i965 if i don't have any USE flag to enable it. After your comment i > realized that i should add i915 to my VIDEO_CARDS to have MESA build with > i915 support only. But after this 3D support got broken and i add to > fallback to remove i915 from VIDEO_CARDS. I don't know why totem is trying to load i965, but the problem isn't that the i965 driver is installed. > Am i the only one with this problem ? I guess not since the USE flags are > really easy to messed up on MESA. My feeling is that you should remove intel > use flag and make the whole gentoo portage ebuilds use i915. Really the USE > flags need consistence. The other uses of VIDEO_CARDS="intel" (ie in libdrm) support Intel cards in general, not just i915. The VIDEO_CARDS flags are designed such that users that don't know or care about which Intel card they have can simply set VIDEO_CARDS=intel and get the right driver. If they know which they need, they can add it to package.use and not bother compiling and installing drivers they don't need. I don't see any reason to change this. (In reply to comment #10) > (In reply to comment #9) > > i have a i915 card and i have this variables: VIDEO_CARDS="intel nvidia" > > > > i was surprised to see that totem failed to start (actually i got a > > segfault) because it tries to use i965. I was surprised again why i have > > i965 if i don't have any USE flag to enable it. After your comment i > > realized that i should add i915 to my VIDEO_CARDS to have MESA build with > > i915 support only. But after this 3D support got broken and i add to > > fallback to remove i915 from VIDEO_CARDS. > > I don't know why totem is trying to load i965, but the problem isn't that > the i965 driver is installed. > > > Am i the only one with this problem ? I guess not since the USE flags are > > really easy to messed up on MESA. My feeling is that you should remove intel > > use flag and make the whole gentoo portage ebuilds use i915. Really the USE > > flags need consistence. > > The other uses of VIDEO_CARDS="intel" (ie in libdrm) support Intel cards in > general, not just i915. > > The VIDEO_CARDS flags are designed such that users that don't know or care > about which Intel card they have can simply set VIDEO_CARDS=intel and get > the right driver. If they know which they need, they can add it to > package.use and not bother compiling and installing drivers they don't need. > > I don't see any reason to change this. I belive you :) but i think you should see my point, you forced me to set intel on my VIDEO_CARDS, then MESA installs the two drivers and only need one, totem/gnome-shell/gdm broke because i use VIDEO_CARDS="intel nvidia i915" and then remove i915 everything is working but i still got the i965. So im not trying to be picky or anything im just following your logic. > libGL error: dlopen /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)
This means you have an i965 card. The i965_dri.so filename is hardcoded into xf86-video-intel, and cannot be changed through USE flags.
Building mesa with VIDEO_CARDS="intel" or "i965" or "i965 intel" should give you the correct driver for that. If the above error message persists, then there is maybe a problem with eselect opengl.
Luis... so what do you think the VIDEO_CARDS settings in comment #8 should do? (In reply to comment #13) > Luis... so what do you think the VIDEO_CARDS settings in comment #8 should > do? For the sake of consistency i think intel should build i915 and i965 build only i965. And yes i do understand the flags of MESA so its a bit hard to archive a good solution for everyone. (In reply to comment #14) > For the sake of consistency i think intel should build i915 and i965 build > only i965. And yes i do understand the flags of MESA so its a bit hard to > archive a good solution for everyone. That is not consistent at all. We have VIDEO_CARDS=intel everywhere which builds anything and everything related to Intel GPUs. Mesa loads _either_ i915_dri.so _or_ i965_dri.so based solely on a PCI ID list, since no GPU is supported by both drivers. So in other words, as far as mesa is concerned, having VIDEO_CARDS=intel is strictly equivalent to having VIDEO_CARDS="i915 i965". Having VIDEO_CARDS=intel not build support for all Intel GPUs would confuse just about anyone. Cheers So I think we'll close this.. *** Bug 522878 has been marked as a duplicate of this bug. *** |