Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel graphics, iris, mesa, gallium3d, vaapi.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 679

PostPosted: Sat Mar 21, 2020 9:06 pm    Post subject: Intel graphics, iris, mesa, gallium3d, vaapi. Reply with quote

As some of you may be aware, Intel has been busy over the past year or so rewriting their driver stack to use mesa's gallium3d layers. Unfortunately, this support isn't well documented in Gentoo-land. As near as I can tell, this is how to get up and running with this driver stack in Gentoo:
  • Update to at least `media-libs/mesa-20`, `media-libs/gmmlib-19.4.1`, `x11-libs/libva-2.6.1`. Some of these are `~arch`.
  • In `/etc/portage/make.conf`, set `VIDEO_CARDS=""`.
  • Set USE="-classic gallium d3d9 vaapi"
  • In /etc/portage/package.use, set `media-libs/mesa video_cards_iris`,`x11-libs/libdrm video_cards_intel`, `x11-base/xorg-server -minimal`
  • If you want to build `xorg-server` with `USE=minimal`, set `x11-base/xorg-drivers video_cards_i965`. But ideally, you should be using the modesetting driver built into xorg-server. YMMV.
  • `emerge x11-libs/libva-intel-media-driver`. Currently, the version in portage is out of date. Copy the 18.4.1 ebuild to 19.4.0r in your local portage repo. It will work fine.
  • create `/etc/env.d/50vaapi`, and in it, put `LIBVA_DRIVER_NAME=iHD`
I am 99% sure nothing else will need `video_cards_intel` or `video_cards_i965`, but I'm not positive.

Kernel, opengl, vulkan configurations mostly follow what's documented on the wiki.

I do not know if/how to get opencl running under iris.


Last edited by pigeon768 on Sun Mar 22, 2020 6:56 pm; edited 2 times in total
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2650
Location: Canada

PostPosted: Sun Mar 22, 2020 3:47 am    Post subject: Re: Intel graphics, iris, mesa, gallium3d, vaapi. Reply with quote

pigeon768 wrote:
As some of you may be aware, Intel has been busy over the past year or so rewriting their driver stack to use mesa's gallium3d layers. Unfortunately, this support isn't well documented in Gentoo-land. As near as I can tell, this is how to get up and running with this driver stack in Gentoo:

  • In `/etc/portage/make.conf`, set `VIDEO_CARDS=""`.
  • Set USE="-classic gallium d3d9 vaapi"
  • In /etc/portage/package.use, set `media-libs/mesa video_cards_iris` and `x11-libs/libdrm video_cards_intel`
  • `emerge x11-libs/libva-intel-media-driver`. Currently, the version in portage is out of date. Copy the 18.4.1 ebuild to 19.4.0r in your local portage repo. It will work fine.
  • create `/etc/env.d/50vaapi`, and in it, put `LIBVA_DRIVER_NAME=iHD`
I am 99% sure nothing else will need `video_cards_intel` or `video_cards_i965`, but I'm not positive.

Kernel, opengl, vulkan configurations mostly follow what's documented on the wiki.

I do not know if/how to get opencl running under iris.


What intel chipsets will this work on ?
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 679

PostPosted: Sun Mar 22, 2020 4:25 am    Post subject: Reply with quote

Gen8 (Broadwell) or later. Basically, everything that has been released since 2014. The last new release of a GPU not supported by the Iris driver was in 2013.

Obviously i965+classic will need to be kept around indefinitely, but iris+classic should be the default.
Back to top
View user's profile Send private message
grumblebear
Apprentice
Apprentice


Joined: 26 Feb 2008
Posts: 169

PostPosted: Sun Mar 22, 2020 9:58 am    Post subject: Reply with quote

I have done basically the same.
Set VIDEO_CARDS="intel iris" because intel is needed for some other packages.
In package.use put
Code:
media-libs/mesa -classic -video_cards_intel

... and
Code:
x11-base/xorg-drivers video_cards_i965
to get rid of the no longer needed xf86-video-intel driver.
I have commented on this issue in this closed bug but got no attention so far.

For best results use Mesa 20. Since then upstream has selected iris as the new default driver for supported Intel hardware.
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 679

PostPosted: Sun Mar 22, 2020 6:52 pm    Post subject: Reply with quote

Good note on mesa-20. I updated my post.

Note that you don't need any `xf86-video-*` drivers for intel. The modesetting driver is the recommended option. xorg-server includes the modesetting driver unless you have USE=minimal set. I'll have to update my post again.

Which packages need VIDEO_CARDS=intel besides libdrm? We should sort all this out, then put it up on the wiki.
Back to top
View user's profile Send private message
grumblebear
Apprentice
Apprentice


Joined: 26 Feb 2008
Posts: 169

PostPosted: Sun Mar 22, 2020 7:55 pm    Post subject: Reply with quote

pigeon768 wrote:
Note that you don't need any `xf86-video-*` drivers for intel. The modesetting driver is the recommended option. xorg-server includes the modesetting driver unless you have USE=minimal set. I'll have to update my post again.

That's why you should install xorg-drivers with video_cards_i965. If you look at the mentioned bug report, you will see that this flag just prevents pulling of xf86-video-intel.

pigeon768 wrote:
Which packages need VIDEO_CARDS=intel besides libdrm? We should sort all this out, then put it up on the wiki.

You can get a list of all packages with
Code:
quse video_cards_intel
or
Code:
quse -I video_cards_intel
for just the installed packages.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2650
Location: Canada

PostPosted: Mon Mar 23, 2020 12:05 am    Post subject: Re: Intel graphics, iris, mesa, gallium3d, vaapi. Reply with quote

pigeon768 wrote:

[*] If you want to build `xorg-server` with `USE=minimal`, set `x11-base/xorg-drivers video_cards_i965`. But ideally, you should be using the modesetting driver built into xorg-server. YMMV.


video_cards_i965 is using modesetting driver
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 679

PostPosted: Mon Mar 23, 2020 2:02 am    Post subject: Reply with quote

Oof, you're right.

This configuration is not ideal. This is a problem, because every new computer of the past 7 years needs to pretzel themselves to have a correct configuration.

What should this look like? Maybe replace i915 with intel_g3, replace i965 with intel_g4, and iris with intel_g8? Are generation 2 and below supported?
Back to top
View user's profile Send private message
grumblebear
Apprentice
Apprentice


Joined: 26 Feb 2008
Posts: 169

PostPosted: Mon Mar 23, 2020 10:18 am    Post subject: Reply with quote

I think it would be best to just set VIDEO_CARDS="intel iris" for "newer" hardware as I have done and state that clearly in the wiki. That means leaving everything as it is with the second flag mainly for (and matching what is used in) mesa and the "intel" flag for everything else.

The meta package xorg-drivers should be changed to pull xf86-video-intel only for i915 as I have proposed in my last comment.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2650
Location: Canada

PostPosted: Tue Mar 24, 2020 7:00 pm    Post subject: Reply with quote

grumblebear wrote:
I think it would be best to just set VIDEO_CARDS="intel iris" for "newer" hardware as I have done and state that clearly in the wiki. That means leaving everything as it is with the second flag mainly for (and matching what is used in) mesa and the "intel" flag for everything else.

The meta package xorg-drivers should be changed to pull xf86-video-intel only for i915 as I have proposed in my last comment.


Well, maybe in future, currently 'iris' will not overwrite 'intel' ( as 'i965' does ) your combination will pull xf86-video-intel. And it is strange to pull intel driver for i915 but not for 'intel' itself.
Basically, you want to depreciate classical, non-modesetting driver for all but the old cards ? That is a bit drastic.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum