Mesa: Difference between revisions

From ArmadeusWiki
Line 5: Line 5:


==Installation==
==Installation==
* To compile mesa requires ''makedepend'' installed on your Host:
* To compile, mesa requires ''makedepend'' installed on your Host:
<pre class="host">
<pre class="host">
$ sudo apt-get install xutils-dev
$ sudo apt-get install xutils-dev
Line 18: Line 18:


Requires GPM too !!
Requires GPM too !!
* Rebuild your rootfs:
<pre class="host">
$ make
</pre>
* and then reflash it.


* copy some demo or examples on your target:
* copy some demo or examples on your target:
Line 28: Line 33:
# cd mesa/demos/
# cd mesa/demos/
# tftp -g -r gears 192.168.1.2  (Host IP)
# tftp -g -r gears 192.168.1.2  (Host IP)
# chmod a+x gears
</pre>
</pre>



Revision as of 19:06, 7 December 2009

Page under construction... Construction.png Informations on this page are not guaranteed !!



Gears.png

Installation

  • To compile, mesa requires makedepend installed on your Host:
$ sudo apt-get install xutils-dev
  • Select it in Buildroot menu:
 armadeus$ make menuconfig

Menuconfig package.png

  • Choose Mesa

Requires GPM too !!

  • Rebuild your rootfs:
 $ make
  • and then reflash it.
  • copy some demo or examples on your target:
$ cp buildroot/build_armvXX/Mesa-7.0/progs/demos/gears /tftpboot/
# cd
# mkdir -p mesa/demos/
# cd mesa/demos/
# tftp -g -r gears 192.168.1.2  (Host IP)
# chmod a+x gears

Usage

  • Prevent framebuffer from going to sleep and cursor from blinking:
# echo -e '\033[9;0]' > /dev/tty1
# echo 0 > /sys/class/graphics/fbcon/cursor_blink
  • Launch your demos:
# cd mesa/demos/
# ./gears
....
Defaulting to stdin input
48 frames in  5.034 seconds =  9.535 FPS
  • With only ~10fps (on APF27), you will learn that ARM9 cores without 3D nor Floating points unit really suffer to render 3D scenes in software.
  • Demo will take control of the serial console. To quit each demo, press "ESC" on your console.

Links

Other languages:

English Flag.svg English  •  French Flag.svg Français