Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting Intel's GEM?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Jul 16, 2008 6:24 pm    Post subject: Getting Intel's GEM? Reply with quote

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
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Wed Jul 16, 2008 7:02 pm    Post subject: Reply with quote

libdrm-2.4 seems to be something that doesn't exist yet

http://dri.freedesktop.org/libdrm/
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Jul 16, 2008 10:23 pm    Post subject: Reply with quote

slycordinator wrote:
libdrm-2.4 seems to be something that doesn't exist yet

http://dri.freedesktop.org/libdrm/

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
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Wed Jul 16, 2008 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Jul 16, 2008 10:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
tylerwylie
Guru
Guru


Joined: 19 Sep 2004
Posts: 458
Location: /US/Georgia/Atlanta

PostPosted: Wed Jul 16, 2008 10:41 pm    Post subject: Reply with quote

wswartzendruber wrote:
slycordinator wrote:
libdrm-2.4 seems to be something that doesn't exist yet

http://dri.freedesktop.org/libdrm/

Punch that into Google and you'll get a bunch of stuff for Fedora 9.
Fixed.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Thu Jul 17, 2008 1:57 am    Post subject: Reply with quote

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
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Thu Aug 07, 2008 2:35 am    Post subject: Reply with quote

So does an intel driver & kernel with gem exist yet? I'm running dev stuff and glxinfo still references TTM (failure).
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Fri Aug 08, 2008 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Fri Aug 08, 2008 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Kern3lP4nic
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2004
Posts: 116
Location: Someone, somewhere, in the north of Italy

PostPosted: Fri Aug 08, 2008 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Aug 08, 2008 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri Aug 08, 2008 1:53 pm    Post subject: Reply with quote

DRI2 has been removed from xorg 7.4: http://www.phoronix.com/scan.php?page=news_item&px=NjYzNw
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Fri Aug 08, 2008 6:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kern3lP4nic
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2004
Posts: 116
Location: Someone, somewhere, in the north of Italy

PostPosted: Mon Aug 11, 2008 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Mon Aug 11, 2008 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Fri Aug 22, 2008 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Hibbelharry
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 88
Location: Bremen, Northern Germany

PostPosted: Sun Aug 24, 2008 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 801

PostPosted: Wed Sep 10, 2008 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Thu Oct 09, 2008 1:39 am    Post subject: Reply with quote

I just got gem working. It is very stable. My framerate jumped from about 750 to 950 in glxgears.
Nexiuz is so smooth now. :D
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Thu Oct 09, 2008 11:16 am    Post subject: Reply with quote

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. :D

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
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Thu Oct 09, 2008 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Fri Oct 10, 2008 1:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Fri Oct 10, 2008 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Tue Oct 14, 2008 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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