Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel i915: Using TTM with mesa-7.1/xorg-server-1.5
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Thu Oct 30, 2008 4:24 am    Post subject: Reply with quote

libdrm-2.4.0, xorg-server-1.5.0, mesa-7.2, and xf86-video-intel-2.5.0 was released, but ttm still does not work, and gem is still not out yet, so this is what i did:

1. download http://cgit.freedesktop.org/mesa/drm/tree/libdrm/xf86mm.h, put it in /usr/local/include/xf86mm.h
2. run EXTRA_ECONF=--enable-ttm-api emerge mesa, press Ctrl-Z right when configure is done
3. add:
Code:
#include <xf86mm.h>

to the beginning of these files:

    /var/tmp/portage/media-libs/mesa-7.2/work/Mesa-7.2/src/mesa/drivers/dri/common/dri_util.h
    /var/tmp/portage/media-libs/mesa-7.2/work/Mesa-7.2/src/mesa/drivers/dri/i915/intel_bufmgr_ttm.c

4. continue the build by running fg
5. restart x (if you are on it)

there you have it!

EDIT: changed media-libs/mesa to media-libs/mesa-7.2 (thanks to dmpogo)


Last edited by gman8 on Fri Oct 31, 2008 12:23 am; edited 2 times in total
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2032
Location: Canada

PostPosted: Thu Oct 30, 2008 4:47 am    Post subject: Reply with quote

gman8 wrote:
libdrm-2.4.0, xorg-server-1.5.0, mesa-7.2, and xf86-video-intel-2.5.0 was released, but ttm still does not work, and gem is still not out yet, so this is what i did:

1. download http://cgit.freedesktop.org/mesa/drm/tree/libdrm/xf86mm.h, put it in /usr/local/include/xf86mm.h
2. run EXTRA_ECONF=--enable-ttm-api emerge mesa, press Ctrl-Z right when configure is done
3. add:
Code:
#include <xf86mm.h>

to the beginning of these files:

    /var/tmp/portage/media-libs/mesa/work/Mesa-7.2/src/mesa/drivers/dri/common/dri_util.h
    /var/tmp/portage/media-libs/mesa/work/Mesa-7.2/src/mesa/drivers/dri/i915/intel_bufmgr_ttm.c

4. continue the build by running fg
5. restart x (if you are on it)

there you have it!



on my machine the path seems to be

    /var/tmp/portage/media-libs/mesa-7.2/work/Mesa-7.2/src/mesa/drivers/dri/common/dri_util.h


etc
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2032
Location: Canada

PostPosted: Thu Oct 30, 2008 5:28 am    Post subject: Reply with quote

gman8 wrote:
libdrm-2.4.0, xorg-server-1.5.0, mesa-7.2, and xf86-video-intel-2.5.0 was released, but ttm still does not work, and gem is still not out yet, so this is what i did:

1. download http://cgit.freedesktop.org/mesa/drm/tree/libdrm/xf86mm.h, put it in /usr/local/include/xf86mm.h
2. run EXTRA_ECONF=--enable-ttm-api emerge mesa, press Ctrl-Z right when configure is done
3. add:
Code:
#include <xf86mm.h>

to the beginning of these files:

    /var/tmp/portage/media-libs/mesa/work/Mesa-7.2/src/mesa/drivers/dri/common/dri_util.h
    /var/tmp/portage/media-libs/mesa/work/Mesa-7.2/src/mesa/drivers/dri/i915/intel_bufmgr_ttm.c

4. continue the build by running fg
5. restart x (if you are on it)

there you have it!


works fine ! glxgears went from that 50 to 280. Not spectacular, but improvement :)
Back to top
View user's profile Send private message
bec
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 129
Location: Cali - Colombia

PostPosted: Thu Oct 30, 2008 3:56 pm    Post subject: kernel? Reply with quote

Thanks for the guide!

I have a question, what kernel are you using?
_________________
abe
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2032
Location: Canada

PostPosted: Thu Oct 30, 2008 4:28 pm    Post subject: Re: kernel? Reply with quote

bec wrote:
Thanks for the guide!

I have a question, what kernel are you using?


As for me, I was on gentoo-sources-2.6.26-r1
Back to top
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Fri Oct 31, 2008 12:36 am    Post subject: Reply with quote

ok, I have ttm working, but the performance is only about 80% of that of the original version of mesa (200fps vs 150fps in glxgears.) It doesn't really matter as long as redirected opengl works, but the performance should be better, not worse. What gives? I have an Intel 865G.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2032
Location: Canada

PostPosted: Fri Oct 31, 2008 1:16 am    Post subject: Reply with quote

Hei playing with that I noticed that somehow driconf tells me

could not connect any configurable direct-rendering devices

while

Code:

$ xdriinfo
Screen 0: i965
$ xdriinfo options i965
Driver "i965" is not installed or does not support configuration


This is with GM965, xf86-video-intel-2.5.0, mesa-7.2 patched for ttm
glxinfo is normal, glxgears, as I said went up with ttm.

(I have not tried xdriinfo before ttm patch, but I bet it was the same)
Back to top
View user's profile Send private message
Biszkopt
n00b
n00b


Joined: 21 Dec 2008
Posts: 16

PostPosted: Tue Dec 23, 2008 2:52 pm    Post subject: Reply with quote

Code:

checking for xf86mm.h... no



Make i was wrong?
Back to top
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Tue Dec 23, 2008 6:11 pm    Post subject: Reply with quote

Biszkopt wrote:
Code:

checking for xf86mm.h... no



Make i was wrong?


download http://cgit.freedesktop.org/mesa/drm/plain/libdrm/xf86mm.h and put it in /usr/local/include. If that doesnt work put it in /usr/include.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2032
Location: Canada

PostPosted: Tue Dec 23, 2008 8:47 pm    Post subject: Reply with quote

Actually, I found out that it is ttm patch that kills driconf. Without it driconf works just fine, allows to set VBLANK be set to off, and fps for glxgears go up to 550 range (from 200 with ttm patch in).

So no I'm not sure ttm patch gains anything.
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
Goto page Previous  1, 2
Page 2 of 2

 
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