View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Wed Jul 16, 2008 6:24 pm Post subject: Getting Intel's GEM? |
|
|
I'm trying to get Intel's GEM (Graphics Execution Manager) working so that I can take DRI2 for a spin. I've got XServer 1.5 RC5 installed. As far as I know, I have to update the following:
vanilla-sources
libdrm
What am I missing? Is GEM included in mm-sources? Where can I find libdrm-2.4? _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
|
Back to top |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Wed Jul 16, 2008 10:23 pm Post subject: |
|
|
Punch that into Google and you'll get a bunch of stuff for Fedora Core 9. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Wed Jul 16, 2008 10:30 pm Post subject: |
|
|
Well there is the nasty habit of fedora maintainers to use full version numbers for pre-release versions (see "glibc 2.8"). You'll have to get libdrm from X.org's scm I guess. |
|
Back to top |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Wed Jul 16, 2008 10:31 pm Post subject: |
|
|
Voltago wrote: | Well there is the nasty habit of fedora maintainers to use full version numbers for pre-release versions (see "glibc 2.8"). You'll have to get libdrm from X.org's scm I guess. |
I think it might just be time to pull out layman. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
tylerwylie Guru
Joined: 19 Sep 2004 Posts: 458 Location: /US/Georgia/Atlanta
|
Posted: Wed Jul 16, 2008 10:41 pm Post subject: |
|
|
wswartzendruber wrote: |
Punch that into Google and you'll get a bunch of stuff for Fedora 9. | Fixed. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Thu Jul 17, 2008 1:57 am Post subject: |
|
|
Moved from Off the Wall to Desktop Environments. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
valis n00b
Joined: 20 Feb 2007 Posts: 19
|
Posted: Thu Aug 07, 2008 2:35 am Post subject: |
|
|
So does an intel driver & kernel with gem exist yet? I'm running dev stuff and glxinfo still references TTM (failure). |
|
Back to top |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Fri Aug 08, 2008 1:11 am Post subject: |
|
|
valis wrote: | So does an intel driver & kernel with gem exist yet? I'm running dev stuff and glxinfo still references TTM (failure). |
GEM hasn't made it into the kernel yet (expect it in 2.6.2[7|8]). xf86-video-intel won't get it until probably 2.5.0. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
pigeon768 l33t
Joined: 02 Jan 2006 Posts: 683
|
Posted: Fri Aug 08, 2008 5:05 am Post subject: |
|
|
You don't need GEM for dri2. DRI2 is in portage, just need to unmask a bunch of stuff. Unmask (and keyword) xorg-server-1.4.99, try to update world. It will complain about missing dependencies. Unmask everything it complains about, and eventually you'll unmask everything you need. Once that's done, reinstall all the xf86-video and xf86-input packages you have installed. Restart X. You are now running DRI2. |
|
Back to top |
|
|
Kern3lP4nic Tux's lil' helper
Joined: 29 Jun 2004 Posts: 116 Location: Someone, somewhere, in the north of Italy
|
Posted: Fri Aug 08, 2008 11:41 am Post subject: |
|
|
seems like we won't see DRI2 in kernel for a loong time because it was initialy written with TTM support in mind. Now intel forced GEM instead of TTM, so DRI2 code will basically need to go through some more or less extended revision |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Aug 08, 2008 11:46 am Post subject: |
|
|
I don't know anything about this GEM stuff, neither do I about mm- sources. But if you need a newer libdrm version you can try to rename the 2.3 ebuild. Or you can as well, try the libdrm-9999.ebuild that is in the nouveau overlay (available via layman).
I don't know if this will be useful for you, but I let you know just in case. |
|
Back to top |
|
|
termite Guru
Joined: 06 May 2007 Posts: 466
|
|
Back to top |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Fri Aug 08, 2008 6:24 pm Post subject: |
|
|
Kern3lP4nic wrote: | seems like we won't see DRI2 in kernel for a loong time because it was initialy written with TTM support in mind. Now intel forced GEM instead of TTM, so DRI2 code will basically need to go through some more or less extended revision |
Intel didn't force anything. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
Kern3lP4nic Tux's lil' helper
Joined: 29 Jun 2004 Posts: 116 Location: Someone, somewhere, in the north of Italy
|
Posted: Mon Aug 11, 2008 8:56 am Post subject: |
|
|
wswartzendruber wrote: | Kern3lP4nic wrote: | seems like we won't see DRI2 in kernel for a loong time because it was initialy written with TTM support in mind. Now intel forced GEM instead of TTM, so DRI2 code will basically need to go through some more or less extended revision |
Intel didn't force anything. |
semantics. They didn't point guns at the head of anybody, what they basically did was stop supporting TTM and start implementing GEM all on their own, while letting TTM/GEM depending technologies like DRI2 and EXA follow their path.
I'm not saying they shouldn't do that, they are by far the biggest contributor to the advancing of X technologies, so in my point of view they have some right of "bending" those advancing on their favor. |
|
Back to top |
|
|
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Mon Aug 11, 2008 1:35 pm Post subject: |
|
|
Kern3lP4nic wrote: | wswartzendruber wrote: | Kern3lP4nic wrote: | seems like we won't see DRI2 in kernel for a loong time because it was initialy written with TTM support in mind. Now intel forced GEM instead of TTM, so DRI2 code will basically need to go through some more or less extended revision |
Intel didn't force anything. |
semantics. They didn't point guns at the head of anybody, what they basically did was stop supporting TTM and start implementing GEM all on their own, while letting TTM/GEM depending technologies like DRI2 and EXA follow their path.
I'm not saying they shouldn't do that, they are by far the biggest contributor to the advancing of X technologies, so in my point of view they have some right of "bending" those advancing on their favor. |
TTM had some performance issues that even the TTM devs reckognized. These issues were fairly fundamental, as I recall. The API was also apparently a bit on the nasty side. I'm all for having some friendly competition for these key technologies so that we get the best one that's been vetted by the system, versus having one foisted upon us from on high because it looks good on paper. |
|
Back to top |
|
|
Xake Guru
Joined: 11 Feb 2004 Posts: 588 Location: Göteborg, the rainy part of scandinavia
|
Posted: Fri Aug 22, 2008 11:17 am Post subject: |
|
|
So back to the subject:
Using xf86-video-intel/xorg/libdrm/x11-drm from git@freedesktop (exists in the x11-overlay in layman) what do I need to get this going with the kernel?
google gives me lkml-disscussions but no code...
....and what git-repo to look into to find the changes is just plain confusing for me.
...and currently you can not even compile i915.ko in x11-drm without kernel-support for gem.
So where should I look for the code?
Does int exist any patch at all against 2.6.26, or even 2.6.27-rc[3,4]?
...and are those patches valid (i.e. confomrs with the issues discussed at lkml)? |
|
Back to top |
|
|
Hibbelharry Tux's lil' helper
Joined: 27 May 2003 Posts: 88 Location: Bremen, Northern Germany
|
Posted: Sun Aug 24, 2008 3:09 pm Post subject: |
|
|
Eric Anholt has published gem-patched kernel source in his fdo git. You might take a look at:
http://cgit.freedesktop.org/~anholt/linux-2.6?h=drm-gem-merge#drm-gem-merge
I was able to compile it succesfully but the kernel stalls everytime on boot with no init found. My first attempts on finding working patches for any other kernel yielded non compilable results.
Good Luck
Hibbelharry |
|
Back to top |
|
|
truekaiser l33t
Joined: 05 Mar 2004 Posts: 801
|
Posted: Wed Sep 10, 2008 2:13 am Post subject: |
|
|
so the only working solution is to downgrade back to the older versions of mesa and related programs till things are fixed? |
|
Back to top |
|
|
IvanMajhen Guru
Joined: 10 Jun 2006 Posts: 392 Location: Croatia
|
Posted: Thu Oct 09, 2008 1:39 am Post subject: |
|
|
I just got gem working. It is very stable. My framerate jumped from about 750 to 950 in glxgears.
Nexiuz is so smooth now. |
|
Back to top |
|
|
baeksu l33t
Joined: 26 Sep 2004 Posts: 609 Location: Seoul, Korea
|
Posted: Thu Oct 09, 2008 11:16 am Post subject: |
|
|
IvanMajhen wrote: | I just got gem working. It is very stable. My framerate jumped from about 750 to 950 in glxgears.
Nexiuz is so smooth now. |
May I ask how you got gem working? I just upgraded to xorg-server-1.5.1, and am having performance problems because of ttm (or lack of). _________________ Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do. |
|
Back to top |
|
|
IvanMajhen Guru
Joined: 10 Jun 2006 Posts: 392 Location: Croatia
|
Posted: Thu Oct 09, 2008 5:48 pm Post subject: |
|
|
Link: http://anholt.livejournal.com/39544.html
Don't forget to switch branch to drm-intel-next.
Add X11 overlay from layman, unmask dri2proto, libdrm and mesa and emerge them. That's all. |
|
Back to top |
|
|
baeksu l33t
Joined: 26 Sep 2004 Posts: 609 Location: Seoul, Korea
|
Posted: Fri Oct 10, 2008 1:05 am Post subject: |
|
|
IvanMajhen wrote: | Link: http://anholt.livejournal.com/39544.html
Don't forget to switch branch to drm-intel-next.
Add X11 overlay from layman, unmask dri2proto, libdrm and mesa and emerge them. That's all. |
Thanks (it looked a lot simpler than I thought), but I think I'd better wait until the changes hit the main tree and portage. _________________ Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do. |
|
Back to top |
|
|
Xake Guru
Joined: 11 Feb 2004 Posts: 588 Location: Göteborg, the rainy part of scandinavia
|
Posted: Fri Oct 10, 2008 3:48 pm Post subject: |
|
|
baeksu wrote: | Thanks (it looked a lot simpler than I thought), but I think I'd better wait until the changes hit the main tree and portage. |
If we're lucky that will bee before 2009. |
|
Back to top |
|
|
valis n00b
Joined: 20 Feb 2007 Posts: 19
|
Posted: Tue Oct 14, 2008 2:47 pm Post subject: |
|
|
I must have done something stupid because glxgears says "Failed to initialize GEM. Falling back to classic."
Kernel built from git clone git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel.
SVN/git mesa, dri2proto, libdrm, and xf86-video-i810 (from x11 overlay).
From portage, xorg-server-1.5.1 + deps.
Did I miss something?
EDIT: Also just realized I needed --enable-dri2 for dri2 in xorg-server but now build fails on "GL/internal/dri_sarea.h" not found. Any ideas?
Just built mesa (by hand) from master, no "dri_sarea.h" to be found. |
|
Back to top |
|
|
|