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 Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kner
n00b
n00b


Joined: 23 Nov 2007
Posts: 7

PostPosted: Tue Oct 14, 2008 8:38 pm    Post subject: Reply with quote

valis wrote:
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?


You have to switch to drm-intel-next branch.

git checkout --track -b drm-intel-next origin/drm-intel-next
Back to top
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Wed Oct 15, 2008 4:50 am    Post subject: Reply with quote

Still getting only 60 fps (no compalints about missing gem).
Running libdrm master, dri2proto master, kernel drm-intel-next (thanks), mesa master, and xf86-video-intel dri2.
Possible I missed something else?

glxinfo says:
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 965GM GEM 20080716
OpenGL version string: 2.1 Mesa 7.3-devel

Thanks again.
Back to top
View user's profile Send private message
kner
n00b
n00b


Joined: 23 Nov 2007
Posts: 7

PostPosted: Wed Oct 15, 2008 1:59 pm    Post subject: Reply with quote

valis wrote:
Still getting only 60 fps (no compalints about missing gem).
Running libdrm master, dri2proto master, kernel drm-intel-next (thanks), mesa master, and xf86-video-intel dri2.
Possible I missed something else?

glxinfo says:
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 965GM GEM 20080716
OpenGL version string: 2.1 Mesa 7.3-devel

Thanks again.


Same performance and identical glxinfo output here :(

This came out today: http://lists.freedesktop.org/archives/xorg/2008-October/039404.html
So I'm thinking about give dri2 a try.
Back to top
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Wed Oct 15, 2008 3:38 pm    Post subject: Reply with quote

Mesa now defaults to sync to vblank. The 60fps mean's that glxgears are updated with rates based on monitor HZ.
If you wanna earlier behavior, add something like this in your home folder in .driconf file:
Code:
<driconf>
    <device screen="0" driver="i915">
        <application name="Default">
            <option name="force_s3tc_enable" value="false" />
            <option name="fthrottle_mode" value="2" />
            <option name="vblank_mode" value="0" />
            <option name="allow_large_textures" value="2" />
        </application>
    </device>
</driconf>

or emerge driconf.
Back to top
View user's profile Send private message
kner
n00b
n00b


Joined: 23 Nov 2007
Posts: 7

PostPosted: Wed Oct 15, 2008 4:56 pm    Post subject: Reply with quote

Thanks, now I'm getting around 750fps :)
Back to top
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Wed Oct 15, 2008 5:44 pm    Post subject: Reply with quote

1000+ fps, :D
Attempting to test out dri2 now, any of you folks have it up?
Do I need to be running drm-gem mesa? Xorg-server-1.5.1 seems to want dri_sarea.h which I don't see in mesa master.
Maybe I should be running xorg-server-9999?

Thanks.
Back to top
View user's profile Send private message
kner
n00b
n00b


Joined: 23 Nov 2007
Posts: 7

PostPosted: Thu Oct 16, 2008 1:23 am    Post subject: Reply with quote

Yep, you will need xorg-server-9999. I've tried it this morning but I got some problems with libxcb, well, actually with libX11. The thing is that xorg-server-9999 expects some symbols to be defined in libX11 but they are not in my libX11-9999. It seems related to the new XCB socket handoff mechanism for Xlib/XCB.

I've tried with the handoff branch in libxcb but no luck :(
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: Thu Oct 16, 2008 7:52 am    Post subject: Reply with quote

kner wrote:
Yep, you will need xorg-server-9999. I've tried it this morning but I got some problems with libxcb, well, actually with libX11. The thing is that xorg-server-9999 expects some symbols to be defined in libX11 but they are not in my libX11-9999. It seems related to the new XCB socket handoff mechanism for Xlib/XCB.

I've tried with the handoff branch in libxcb but no luck :(


Strange. For me the problem was the opposite: xorg-server compiled without a glitch (well, after updating dri2proto from git and mesa, that is) but libxcb fails to compile.
Back to top
View user's profile Send private message
kner
n00b
n00b


Joined: 23 Nov 2007
Posts: 7

PostPosted: Thu Oct 16, 2008 12:45 pm    Post subject: Reply with quote

libxcb fails on compile since some of the patches in x11/x11-libs/libxcb/files are no longer valid in the current libxcb scm :(

I'got some of them removed and it did compile and it built libX11 but xorg-server didn't find some symbols. I guess there's a branch in xorg-server for the new XCB socket handoff mechanism.
Back to top
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Thu Oct 16, 2008 2:47 pm    Post subject: Reply with quote

Bizarre, I just removed the patches from the libX11 and libxcb ebuilds, added --enable-dri2 to the xorg-server-9999 ebuild and everything worked yesterday.

EDIT: I did need to update dri2proto.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Fri Oct 17, 2008 2:22 pm    Post subject: Reply with quote

For those with working DRI2, does redirected direct rendering work yet? What about tearing?
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
joaquingt
n00b
n00b


Joined: 17 Aug 2008
Posts: 14

PostPosted: Fri Oct 17, 2008 11:01 pm    Post subject: i was waitng since long time for this Reply with quote

guys since some of you already figure out how to enable dri2, could someone post a guide of how to DRI2, or could someone give me a light on how to do it plz, cause some ppl say that we need the module in the kernel, other ppl say we dont, and is just to add the x11 overlay and unmask some packages, do i need to unmerge my xf86-video-i810, wich one do i need to enable dri2 ?, and also, someone said "i got gem working, is very stable ......." what that means ?? the direct rendering working, or is gem indirect rendering to the frame buffer ??? plz someone give me light, im so confused

im using xf86-video-i810-2.4.2-r2
xorg-server-1.5.2
xorg-x11 7.4
media-libs/mesa-7.2
x11-apps/mesa-progs-7.1
x11-proto/xf86driproto-2.0.4

i have x11-proto/dri2proto-1.1 installed
but i really dont have idea how to make dri2 to work or even GEM

could someone explain plz


thx
Back to top
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Sat Oct 18, 2008 12:23 am    Post subject: Reply with quote

Enabling UXA makes X unuseable and freeze, doesn't work at all with tiling enabled.
Here's a bit of info on the state http://thread.gmane.org/gmane.comp.freedesktop.xorg/32819

@joaquingt
The ebuilds I mention come from the x11 overlay.
You need to be running just about everything out of git. Also you'll need to make a local overlay, copy the libxcb and libX11 over and remove the patches, you'll get compile errors otherwise.
EDIT: forgot to mention you need to add --enable-dri2 to the xorg-server ebuild.
In your local overlay copy the xf86-video-i810 ebuild, at the top above "inherit x-modular git" add "EGIT_BRANCH='dri2'".
Go grab Anholt's kernel, see http://anholt.livejournal.com/39544.html and install it.

Now in xorg.conf add Load "dri2", under your graphics card device section add "Option 'DRI2' 'true'".
Once that works add to your device section "Option 'AccelMethod' 'UXA'" and "Option 'Tiling' 'no'" if you want dri2, this is very buggy on my laptop and tends to freeze in a short period.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Mon Oct 20, 2008 2:23 am    Post subject: Reply with quote

valis wrote:
Enabling UXA makes X unuseable and freeze, doesn't work at all with tiling enabled.
Here's a bit of info on the state http://thread.gmane.org/gmane.comp.freedesktop.xorg/32819

@joaquingt
The ebuilds I mention come from the x11 overlay.
You need to be running just about everything out of git. Also you'll need to make a local overlay, copy the libxcb and libX11 over and remove the patches, you'll get compile errors otherwise.
EDIT: forgot to mention you need to add --enable-dri2 to the xorg-server ebuild.
In your local overlay copy the xf86-video-i810 ebuild, at the top above "inherit x-modular git" add "EGIT_BRANCH='dri2'".
Go grab Anholt's kernel, see http://anholt.livejournal.com/39544.html and install it.

Now in xorg.conf add Load "dri2", under your graphics card device section add "Option 'DRI2' 'true'".
Once that works add to your device section "Option 'AccelMethod' 'UXA'" and "Option 'Tiling' 'no'" if you want dri2, this is very buggy on my laptop and tends to freeze in a short period.

1. xf86-video-i810-9999 already had inherit x-modular git.
2. xf86-video-i810-9999 bombed because it couldn't find dri2.h (resolved by emerging libxcb).
3. libX11 compiled fine without modification.
4. I'm running linux-2.6.27-git8, which has a bunch of stuff referencing GEM.
5. libxcb did need the patch line removed from the ebuild.

FINDINGS: Using xcompmgr, I was able to move a window over GLXGears with the desired results, showing that redirected direct rendering is working. However, Compiz caused the display to blitz, as did trying to utilize textured video through XV. It would seem that the setup (using UXA with tiling disabled) is not at all stable.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
valis
n00b
n00b


Joined: 20 Feb 2007
Posts: 19

PostPosted: Mon Oct 20, 2008 4:06 pm    Post subject: Reply with quote

> xf86-video-i810-9999 already had inherit x-modular git.
Sorry, I meant you should add EGIT_BRANCH="dri2" above that line to grab the dri2 branch. It may have been merged into master by now though.

> I'm running linux-2.6.27-git8, which has a bunch of stuff referencing GEM.
This is surprising to hear, hadn't thought anyone wanted that in the 27 kernel (maybe I don't understand the naming conventions).
You might try out 28 since it will be released with GEM so it will have all the newest stuff.
http://sourceforge.net/mailarchive/forum.php?thread_name=alpine.DEB.0.82.0810170031510.16504%40skynet.skynet.ie&forum_name=dri-devel

> libxcb did need the patch line removed from the ebuild.
You may already know this but, if you do want to try this stuff out you might checkout this patchset http://lists.freedesktop.org/archives/xorg/2008-October/039337.html

Glad to hear dri2 worked with UXA (even a bit, mine just froze immediately).
Were you able to kill (ctrl+alt+backspace) X? My terminal would be all screwed up (assuming gfx hardware was left inconsistent) and I could only get to it by kill -9.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Mon Oct 20, 2008 4:32 pm    Post subject: Reply with quote

valis wrote:
> xf86-video-i810-9999 already had inherit x-modular git.
Sorry, I meant you should add EGIT_BRANCH="dri2" above that line to grab the dri2 branch. It may have been merged into master by now though.

> I'm running linux-2.6.27-git8, which has a bunch of stuff referencing GEM.
This is surprising to hear, hadn't thought anyone wanted that in the 27 kernel (maybe I don't understand the naming conventions).
You might try out 28 since it will be released with GEM so it will have all the newest stuff.
http://sourceforge.net/mailarchive/forum.php?thread_name=alpine.DEB.0.82.0810170031510.16504%40skynet.skynet.ie&forum_name=dri-devel

> libxcb did need the patch line removed from the ebuild.
You may already know this but, if you do want to try this stuff out you might checkout this patchset http://lists.freedesktop.org/archives/xorg/2008-October/039337.html

Glad to hear dri2 worked with UXA (even a bit, mine just froze immediately).
Were you able to kill (ctrl+alt+backspace) X? My terminal would be all screwed up (assuming gfx hardware was left inconsistent) and I could only get to it by kill -9.

It looks to me like the GIT series of kernels are progress towards the next RC, as the GEM mergings were mentioned in the changelog. As of last night, there was no .28 RC.

When it froze for me, it froze completely.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Tue Oct 21, 2008 5:58 am    Post subject: Reply with quote

xf86-video-intel-2.5.0 has been released, although it requires libdrm-2.4.0. This driver contains UXA, but does not contain the video tearing fixes. It also contains KMS, but that's apparently not expected to enter the vanilla kernel until 2.6.29.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
movi
n00b
n00b


Joined: 10 Jul 2008
Posts: 10
Location: Warsaw, Poland

PostPosted: Tue Oct 21, 2008 11:04 am    Post subject: Reply with quote

So, anyone has a overlay for the missing bits of GEM and/of KMS for the rest of us?
Back to top
View user's profile Send private message
tylerwylie
Guru
Guru


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

PostPosted: Tue Oct 21, 2008 12:32 pm    Post subject: Reply with quote

I may install Gentoo just to try out GEM on my T61...
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Tue Oct 21, 2008 4:21 pm    Post subject: Reply with quote

tylerwylie wrote:
I may install Gentoo just to try out GEM on my T61...

It's FAR from worth it yet.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
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: Tue Oct 21, 2008 4:35 pm    Post subject: Reply with quote

wswartzendruber wrote:
tylerwylie wrote:
I may install Gentoo just to try out GEM on my T61...

It's FAR from worth it yet.


Installing Gentoo or trying gem?;)

Should not be THAT hard setting it up on any other dist either, if you know what you're doing.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Tue Oct 21, 2008 10:35 pm    Post subject: Reply with quote

Xake wrote:
wswartzendruber wrote:
tylerwylie wrote:
I may install Gentoo just to try out GEM on my T61...

It's FAR from worth it yet.


Installing Gentoo or trying gem?;)

Should not be THAT hard setting it up on any other dist either, if you know what you're doing.

Installing GEM is, in my humble opinion, a waste of time at this point.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
movi
n00b
n00b


Joined: 10 Jul 2008
Posts: 10
Location: Warsaw, Poland

PostPosted: Tue Oct 21, 2008 10:47 pm    Post subject: Reply with quote

I know this might be lame question but why?
Back to top
View user's profile Send private message
g0rg0n
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2006
Posts: 83

PostPosted: Wed Oct 22, 2008 2:01 pm    Post subject: Reply with quote

i was thinking of getting gem as well

as i can bearly run compiz right now after updating xorg / drm =S
_________________
nicewarm.coffee
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


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

PostPosted: Wed Oct 22, 2008 2:18 pm    Post subject: Reply with quote

movi wrote:
I know this might be lame question but why?

Why install GEM/DRI2? Because it increases performance and we can actually use GL apps under a composited desktop.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
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 Previous  1, 2, 3, 4, 5  Next
Page 2 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