| View previous topic :: View next topic |
| Author |
Message |
gman8 n00b

Joined: 04 Jul 2008 Posts: 15
|
Posted: Thu Oct 30, 2008 4:24 am Post subject: |
|
|
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 |
|
 |
dmpogo Advocate

Joined: 02 Sep 2004 Posts: 2032 Location: Canada
|
Posted: Thu Oct 30, 2008 4:47 am Post subject: |
|
|
| 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 |
|
 |
dmpogo Advocate

Joined: 02 Sep 2004 Posts: 2032 Location: Canada
|
Posted: Thu Oct 30, 2008 5:28 am Post subject: |
|
|
| 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 |
|
 |
bec Tux's lil' helper


Joined: 30 Sep 2004 Posts: 129 Location: Cali - Colombia
|
Posted: Thu Oct 30, 2008 3:56 pm Post subject: kernel? |
|
|
Thanks for the guide!
I have a question, what kernel are you using? _________________ abe |
|
| Back to top |
|
 |
dmpogo Advocate

Joined: 02 Sep 2004 Posts: 2032 Location: Canada
|
Posted: Thu Oct 30, 2008 4:28 pm Post subject: Re: kernel? |
|
|
| 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 |
|
 |
gman8 n00b

Joined: 04 Jul 2008 Posts: 15
|
Posted: Fri Oct 31, 2008 12:36 am Post subject: |
|
|
| 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 |
|
 |
dmpogo Advocate

Joined: 02 Sep 2004 Posts: 2032 Location: Canada
|
Posted: Fri Oct 31, 2008 1:16 am Post subject: |
|
|
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 |
|
 |
Biszkopt n00b

Joined: 21 Dec 2008 Posts: 16
|
Posted: Tue Dec 23, 2008 2:52 pm Post subject: |
|
|
| Code: |
checking for xf86mm.h... no
|
Make i was wrong? |
|
| Back to top |
|
 |
gman8 n00b

Joined: 04 Jul 2008 Posts: 15
|
|
| Back to top |
|
 |
dmpogo Advocate

Joined: 02 Sep 2004 Posts: 2032 Location: Canada
|
Posted: Tue Dec 23, 2008 8:47 pm Post subject: |
|
|
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 |
|
 |
|