You are not logged in.

#1 2011-02-15 17:26:09

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

poor gma945 + gallium = Woah!

I just installed mesa-full-i915 from aur on a poor 1005ha asus netbook, chipset is 945GM.
Now i can enable kde 4.5 desktop effects in opengl mode, yes, there are some glitches here and there, but the speed is awesome, at least compared to stock intel-dri.
Compiz literally "flies", it stick to 60fps and never goes down, still i can't enable blur effect, but who cares...
Having the same settings, sauerbraten which usually gave me 30...40 fps now is at 50..60.
with libjpeg-turbo this little baby is shining smile

If you have similar hardware i strongly encourage you to give it a try, and if are there other similar topics, silly me who missed them.

big_smile


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2011-02-16 09:48:31

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

kokoko3k wrote:

still i can't enable blur effect, but who cares...

If it in theory would work and I only forgot some compile options then please tell me. smile

Actually I have no idea what the i915 supports or if I did it right. I just took the mesa-full and mesa-full-gallium from the radeon repository and put them somehow together.
For example it still builds r300 and I have no idea how to get rid of it... smile

Glad that it works so good though. I wondered why gallium isn't the default for intel yet. Are there any known major issues?


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#3 2011-02-26 15:11:42

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

Phoronix has opposite results on a NC10.

http://www.phoronix.com/scan.php?page=a … lium3d_915


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#4 2011-02-26 15:58:49

devius
Member
Registered: 2010-11-11
Posts: 22

Re: poor gma945 + gallium = Woah!

I'm going to try this out on my 1000H to see how it goes. Maybe the compiler flags used for building this package are helping the performance? Also, the tests on Phoronix were done with ubuntu so, not exactly the same thing.

Offline

#5 2011-02-26 21:51:31

ChemBro
Member
Registered: 2008-10-22
Posts: 703

Re: poor gma945 + gallium = Woah!

Cdh wrote:

Phoronix has opposite results on a NC10.

http://www.phoronix.com/scan.php?page=a … lium3d_915

I wouldn't trust Phoronix' results.

Offline

#6 2011-02-27 17:46:10

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: poor gma945 + gallium = Woah!

I just readed the phoronix tests. What can i say, my experience is totally different.
The only thing i did was to remove the 'classic' intel driver and builded+installed the gallium one.
Compiler options was optimized for an atom cpu,and i was using intel driver 2.13, while phoronix uses 2.14.
This is the only 'unfair' thing i can think about, but i doubt it can explains a 20%+ of speed improvement.
...Looking forward for more testers!

--Edit--
PS: phoronix is known to leave compiz enabled when making his benchmarks, i don't know if he disabled it or at least 'unredirected fullscreen windows'.

Last edited by kokoko3k (2011-02-28 07:11:12)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#7 2011-02-28 09:57:28

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

Maybe now that openbenchmarking is open we can also submit benchmark results. smile

Can anyone start warcraft3 in wine with i915g? I wanted to see how it performs but it eats up all my RAM and gets killed by OOM...


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#8 2011-03-18 00:42:18

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

The package mesa-full-i915 will now build the classic mesa and the gallium-mesa is under mesa-full-i915g. You can't install both, they build exclusively and conflict (it's easier for me this way).
I think libdrm-git is needed, so I also created the package libdrm-git-intel (and changed the dependency), that just has --enable-intel and --disable radeon. You could just use libdrm-git but it will be bloat. smile
Also there is the package xf86-video-intel-beta with the 2.14.901 (only version changed in abs PKGBUILD (and removed patch, whatever it was for)).

I also recommend creating a xorg.conf and turning color tiling, pageflipping etc. on. Warcraft3 begins to show playable framerates on netbooks!

I tried xonotic and while it is painfully slow on both drivers with i915c I get ~2 fps, with i915g I get ~8fps. But warcraft3 in wine is much slower on i915g than on i915c.
gltron is much slower on i915 too...

I didn't really test much so far but the things I have seen are really mixed results.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#9 2011-03-18 18:42:15

bema
Member
Registered: 2010-02-12
Posts: 26

Re: poor gma945 + gallium = Woah!

Are you sure sure there are options for color tiling and page flipping (which is enabled by default)? I think those are restricted to the radeon driver.

Offline

#10 2011-03-19 01:30:40

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

I created a xorg.conf with X -configure.
I found

Option     "Tiling"

But no pageflipping, right. That's not there. But I have set "SwapbuffersWait" to false.

[  2043.800] (**) intel(0): Option "Tiling" "True"
[  2043.801] (**) intel(0): Tiling enabled

Is this not color tiling?

And by default it seems:

[  2043.864] (II) intel(0): Kernel page flipping support detected, enabling

฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#11 2011-07-06 17:28:52

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: poor gma945 + gallium = Woah!

Weirdly with the i915g driver I can't do 3D.. not even dcompmgr in --gl mode or glxgears: Error: couldn't get an RGB, Double-buffered visual.
Anyone else got this? I have a MHD 4500 (aka G45).
I wonder if the mesa-i965 will be superior to this, since my card is compatible.

Offline

#12 2011-07-06 18:26:43

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

Wait, your card runs with i915 and i965? How? Can you provide the output of

LIBGL_DEBUG=verbose glxinfo | grep render

Btw: I don't provide a gallium package with i965 because I have read on phoronix that it isn't as developed as much as i915 and the commits are very, very seldom so I don't expect it to perform well.

Also, I have to update the i915 gallium package I think.

Last edited by Cdh (2011-07-06 18:28:47)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#13 2011-07-06 18:34:53

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: poor gma945 + gallium = Woah!

libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/i965_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mariachi/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mariachi/.drirc: No such file or directory.
direct rendering: Yes
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset 
    GL_EXT_vertex_array_bgra, GL_NV_conditional_render, 

I'm downloading nexuiz to see if there is a difference between i965 (currently installed), i915c and i915g (if I get 3D to work).

Offline

#14 2011-07-06 18:40:00

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

Are you really sure it should work with i915?


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#15 2011-07-06 18:42:08

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: poor gma945 + gallium = Woah!

lol it has been working for.. say... 3 years tongue and I get a decent frame-rate in nexuiz and good 1080p with mplayer2 -- no vaapi yet though.
but maybe it's really not supposed to work with i915g. Since I'm at it, I'll check i965g out big_smile

Offline

#16 2011-07-06 18:47:37

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

Actually I don't know enaugh about intel. I only have a gme945 netbook and no intel graphics besides... I thought they were strictly disjunct.

Just ready with mesa-full-i915g update. mesa adds features quicker than I can enable them. big_smile

It's probably easier to change that PKGBUILD to i965g.

I think with llvm it should be faster so I added it as a dependency. I don't know if --enablegbm is a good idea because it needs --enable-shared-glapi which is marked experimental, so I didn't do that.

This is the article btw:
http://www.phoronix.com/scan.php?page=n … &px=OTYxNA

Also I am pretty sure I have read that there is an experimental mesa branch with g45 vaapi support... I only found that now: http://www.phoronix.com/scan.php?page=n … &px=OTMxNw
Way too much editing... G45 was better for googling: Here it is, in libva rather than mesa: http://www.phoronix.com/scan.php?page=n … &px=OTQ1NA

Last edited by Cdh (2011-07-06 19:05:40)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#17 2011-07-06 19:11:54

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: poor gma945 + gallium = Woah!

I remember reading somewhere that i965g was experimental. I'll give it a go anyway.
I read that phoronix article, but it seems too much trouble at this point (kernel patching, etc)

Ta-daa big_smile list of gallium drivers.
http://www.phoronix.com/scan.php?page=n … &px=OTYxNg

Last edited by el mariachi (2011-07-06 19:16:48)

Offline

#18 2011-07-06 19:21:48

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

Phoronix wrote:

It doesn't appear that any Intel DRM driver update is required on the kernel side to take advantage of this video playback acceleration

smile


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#19 2011-07-06 20:11:44

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: poor gma945 + gallium = Woah!

hehe I get a ~10fps increase in nexuiz with i965g big_smile
although glxgears and dcompmgr --gl will freeze everything except the mouse cursor :S

Last edited by el mariachi (2011-07-06 20:23:24)

Offline

#20 2011-07-22 08:09:14

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: poor gma945 + gallium = Woah!

Another hit to the applications that gains with i915g is extreme tux racer.
with intel-dri, it reaches 11, 12fps, while with i915g it goes to 28,29.
Sadly enough, i just discovered that youtube in fullscreen is black and white when hw acceleration (scaling) is used as long as gallium, and that some applications will cause the system to heavily swap.
But there is a workaround, you can use intel-dri and gallium without going to install one and uninstall the other; what i did is to keep intel-dri installed for normal desktop use.
Next, i made the pkg for mesa-full-i915g with makepkg and unpacked it to (say) /mesai915g/.

When i need to use i915g for a particular app, i just do:
LD_LIBRARY_PATH=/mesai915g/usr/lib/ LIBGL_DRIVERS_PATH=/mesai915g/usr/lib/xorg/modules/dri sauerbraten

This is also a quick way to make tests, comparisions and benchmarks


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#21 2011-07-22 09:15:05

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: poor gma945 + gallium = Woah!

You could do it as how the radeon driver did it for a while:
Simply changing

   --with-dri-driverdir=/usr/lib/xorg/modules/dri \

to

   --with-dri-driverdir=/usr/lib/xorg/modules/dri_g \

and of course removing intel-dri from the conflictig files and adding it to the dependencies.

And for comfort I'd create a script like
/usr/bin/gallium

#!/bin/bash
LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri_g $@

for starting it like

gallium sauerbraten

(LIBG_DRIVERS_PATH should be a bit better than the whole LD_LIBRARY_PATH)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#22 2011-12-10 16:29:51

GordonGR
Member
From: Thessaloniki, Greece
Registered: 2011-11-07
Posts: 276

Re: poor gma945 + gallium = Woah!

Damn... They discontinued i965g (and removed it from git) just when I was about to try it! Apparently I have the same chipset with el mariachi. Is there a chance anyone still has their x86_64.pkg.tar.xz?


Intel(R) Celeron(R) CPU E3400 @ 2.60GHz, x86_64. AURs.

“No one without the knowledge of geometry may enter.“ Plato.

Offline

Board footer

Powered by FluxBB