lima:aesok-lima.git
5 years agovertex/varying: Add symbol_print_varying function.
Anatoliy Sokolov [Tue, 4 Dec 2012 22:03:23 +0000 (02:03 +0400)]
vertex/varying: Add symbol_print_varying function.

Function symbol_print_varying it is similar to the symbol_print.
In addition, it prints the symbol-> address memory, as an array of float
if is_data_float argument it is true or as array of 16-bit float
if is_data_float it is false.

5 years agovertex/varying: Fix install directory in 'wrap' target in Makefile.
Anatoliy Sokolov [Sat, 1 Dec 2012 11:08:27 +0000 (15:08 +0400)]
vertex/varying: Fix install directory in 'wrap' target in Makefile.

5 years agovertex/varying: Add 'vTestA' and 'vTestC' varying in shader.
Anatoliy Sokolov [Sat, 1 Dec 2012 11:04:40 +0000 (15:04 +0400)]
vertex/varying: Add 'vTestA' and 'vTestC' varying in shader.

5 years agolimare: initialize 'address' field for varying symbols.
Anatoliy Sokolov [Fri, 30 Nov 2012 22:19:13 +0000 (02:19 +0400)]
limare: initialize 'address' field for varying symbols.

In 'vs_info_attach_varying' function initialize 'varying->address' field.

5 years agovertex: Add 'symbol_find' function.
Anatoliy Sokolov [Fri, 30 Nov 2012 21:58:39 +0000 (01:58 +0400)]
vertex: Add 'symbol_find' function.

5 years agoAdd working director—É to study vertex shader.
Anatoliy Sokolov [Fri, 30 Nov 2012 19:15:22 +0000 (23:15 +0400)]
Add working director—É to study vertex shader.

Add shader and shader/varying subdirectories.
Add template project in shader/varying.

5 years agoEliminate linker warnings.
Anatoliy Sokolov [Thu, 29 Nov 2012 22:04:24 +0000 (02:04 +0400)]
Eliminate linker warnings.

Makefile.inc (ANDROID_LIBS): Rearrange libs.

5 years agobuild: Fix building for android 4.03
Anatoliy Sokolov [Tue, 27 Nov 2012 18:13:32 +0000 (22:13 +0400)]
build: Fix building for android 4.03

Pull in the necessary libraries from the device.
Explicitly specify the required libraries to linker.

5 years agolima: rename symbols.
Luc Verhaegen [Thu, 9 Feb 2012 19:06:19 +0000 (20:06 +0100)]
lima: rename symbols.

Also fix up remaining places where mali is mentioned.

Rule of thumb:
* if we define it, it is called lima
* if we define it, and we mean the hw, we say m200/m400
* if it is something to do with the original code, keep mali.

Specifically:
* redefined ioctls: lima
* original ioctls: stay with mali until redefinition.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agolimare: rename top level premali dir to limare.
Luc Verhaegen [Thu, 9 Feb 2012 17:36:02 +0000 (18:36 +0100)]
limare: rename top level premali dir to limare.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agolimare:lib: rename premali.[ch] to limare.[ch]
Luc Verhaegen [Thu, 9 Feb 2012 17:33:21 +0000 (18:33 +0100)]
limare:lib: rename premali.[ch] to limare.[ch]
Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agolimare: rename libpremalis.o to liblimare.so
Luc Verhaegen [Thu, 9 Feb 2012 17:26:49 +0000 (18:26 +0100)]
limare: rename libpremalis.o to liblimare.so

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agolimare:tests: next step of test renaming.
Luc Verhaegen [Thu, 9 Feb 2012 17:22:13 +0000 (18:22 +0100)]
limare:tests: next step of test renaming.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agolimare: tests: rename tests
Luc Verhaegen [Thu, 9 Feb 2012 17:16:19 +0000 (18:16 +0100)]
limare: tests: rename tests

Also alter directory on device.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agoLimare:demo: rename files and app.
Luc Verhaegen [Thu, 9 Feb 2012 16:27:44 +0000 (17:27 +0100)]
Limare:demo: rename files and app.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agoChange license to MIT.
Luc Verhaegen [Thu, 9 Feb 2012 13:10:33 +0000 (14:10 +0100)]
Change license to MIT.

With the GPLed headers clearly separated in include/linux, we
are now free to use the MIT license.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agoinclude: move ARM's GPLed headers to include/linux/
Luc Verhaegen [Thu, 9 Feb 2012 00:37:35 +0000 (01:37 +0100)]
include: move ARM's GPLed headers to include/linux/

This to clearly mark which bits are GPLed, owned by ARM, and which
cannot be changed.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: turn on 4x MSAA
Luc Verhaegen [Tue, 31 Jan 2012 23:24:30 +0000 (00:24 +0100)]
premali: turn on 4x MSAA

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:cube: make it work natively.
Luc Verhaegen [Tue, 31 Jan 2012 22:37:21 +0000 (23:37 +0100)]
premali:cube: make it work natively.

* fix quite a few bugs left and right.
* take care of uniform packing.
* add face culling and take over some value from the
  vertex binary parameters into the vs command stream.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:cube: Added egl rotated and lighted cube.
Arvin Schnell [Sun, 29 Jan 2012 21:54:35 +0000 (22:54 +0100)]
premali:cube: Added egl rotated and lighted cube.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali:demo: Set fullscreen already in manifest.
Arvin Schnell [Sun, 29 Jan 2012 15:17:14 +0000 (16:17 +0100)]
premali:demo: Set fullscreen already in manifest.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali: set up for multiple draw_arrays.
Luc Verhaegen [Mon, 30 Jan 2012 23:07:20 +0000 (00:07 +0100)]
premali: set up for multiple draw_arrays.

Add triangle_quad test.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move vs_info/plbu_info memory to draw_info
Luc Verhaegen [Mon, 30 Jan 2012 20:48:54 +0000 (21:48 +0100)]
premali: move vs_info/plbu_info memory to draw_info

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: create draw structure
Luc Verhaegen [Mon, 30 Jan 2012 20:25:35 +0000 (21:25 +0100)]
premali: create draw structure

Move vs_info and plbu_info into it.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add vertex offset to draw_arrays.
Luc Verhaegen [Mon, 30 Jan 2012 18:49:35 +0000 (19:49 +0100)]
premali: add vertex offset to draw_arrays.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: split up plbu command stream.
Luc Verhaegen [Mon, 30 Jan 2012 18:35:40 +0000 (19:35 +0100)]
premali: split up plbu command stream.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move plbu commands to state.
Luc Verhaegen [Mon, 30 Jan 2012 18:20:20 +0000 (19:20 +0100)]
premali: move plbu commands to state.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move vs command queue to state.
Luc Verhaegen [Mon, 30 Jan 2012 18:09:51 +0000 (19:09 +0100)]
premali: move vs command queue to state.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: quad flat: fix mali 400.
Luc Verhaegen [Mon, 30 Jan 2012 15:12:45 +0000 (16:12 +0100)]
premali: quad flat: fix mali 400.

* the difference in varying count was not dealt with properly.
* turned out that we were rendering in BGRA instead of RGBA.
  Found the bit to swap that, and put some dirty hack in place
  to make it somewhat work.
* fix up the by now stale wrapper library.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: set up varyings at draw_arrays time.
Luc Verhaegen [Sun, 29 Jan 2012 06:05:21 +0000 (07:05 +0100)]
premali: set up varyings at draw_arrays time.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agoBuild system: use a more sensible SDK path.
Luc Verhaegen [Sun, 29 Jan 2012 04:35:27 +0000 (05:35 +0100)]
Build system: use a more sensible SDK path.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: remove debug printing from previous commit.
Luc Verhaegen [Sat, 28 Jan 2012 15:18:42 +0000 (16:18 +0100)]
premali: remove debug printing from previous commit.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add support for fragment uniforms.
Luc Verhaegen [Sat, 28 Jan 2012 12:47:13 +0000 (13:47 +0100)]
premali: add support for fragment uniforms.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: make standard uniforms dynamic.
Luc Verhaegen [Sat, 28 Jan 2012 10:06:24 +0000 (11:06 +0100)]
premali: make standard uniforms dynamic.

Now we assign them inside drawarrays.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: make attribute assignment more dynamic
Luc Verhaegen [Sat, 28 Jan 2012 08:44:15 +0000 (09:44 +0100)]
premali: make attribute assignment more dynamic

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: symbols: rename size members.
Luc Verhaegen [Wed, 25 Jan 2012 07:00:06 +0000 (08:00 +0100)]
premali: symbols: rename size members.

Makes much more sense.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: attach varying space from the linking stage...
Luc Verhaegen [Tue, 24 Jan 2012 13:55:23 +0000 (14:55 +0100)]
premali: attach varying space from the linking stage...

This code is wrong. We should only do this from the drawarrays stage.
Varying space is:
1) one big block (for all except gl_Position)
2) has vertex_count entries.

So next up, reshuffle the code to do its magic only from
the drawarrays stage,

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: first pass at actually linking
Luc Verhaegen [Sun, 22 Jan 2012 16:26:13 +0000 (17:26 +0100)]
premali: first pass at actually linking

We now no longer hardcoding varying locations, we rewrite vertex varying
locations based on the fragment shaders ordering.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add varying binary stream parsing.
Luc Verhaegen [Thu, 19 Jan 2012 19:08:19 +0000 (20:08 +0100)]
premali: add varying binary stream parsing.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add attribute binary stream parsing.
Luc Verhaegen [Thu, 19 Jan 2012 17:09:07 +0000 (18:09 +0100)]
premali: add attribute binary stream parsing.

And fix build while we're at it.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add uniform binary stream parsing
Luc Verhaegen [Thu, 19 Jan 2012 15:58:02 +0000 (16:58 +0100)]
premali: add uniform binary stream parsing

First step of linking: create symbols out of the uniform streams.

Also, add a compile tool for quick and easy testing of what happens
to the shader binary structure for different shaders.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: update some values in the vs command stream
Luc Verhaegen [Tue, 17 Jan 2012 13:55:25 +0000 (14:55 +0100)]
premali: update some values in the vs command stream

Namely, put in attribute/varying size, and a second vertex shader
size reference.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: expand our knowledge of render state.
Luc Verhaegen [Tue, 17 Jan 2012 13:00:56 +0000 (14:00 +0100)]
premali: expand our knowledge of render state.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agowrap: fix ioctl struct printing
Luc Verhaegen [Tue, 17 Jan 2012 12:35:24 +0000 (13:35 +0100)]
wrap: fix ioctl struct printing

Also fix varying_stream_size printing for the shader compiler.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: hide vs/plbu/plb/gp/pp behind premali
Luc Verhaegen [Mon, 16 Jan 2012 01:27:41 +0000 (02:27 +0100)]
premali: hide vs/plbu/plb/gp/pp behind premali

Now we are looking quite trim in the test department.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move width, height and clear_color to premali_state.
Luc Verhaegen [Mon, 16 Jan 2012 00:36:42 +0000 (01:36 +0100)]
premali: move width, height and clear_color to premali_state.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:tests: fix up template.
Luc Verhaegen [Sun, 15 Jan 2012 23:22:54 +0000 (00:22 +0100)]
premali:tests: fix up template.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add mali400 support.
Luc Verhaegen [Sun, 15 Jan 2012 21:44:25 +0000 (22:44 +0100)]
premali: add mali400 support.

Triangle, strip, fan, working nicely, on mali400.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:demo: Show filenames without path in list.
Arvin Schnell [Sun, 15 Jan 2012 19:26:50 +0000 (20:26 +0100)]
premali:demo: Show filenames without path in list.

Show filenames without path in listview by providing own
ArrayAdapter.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali:demo: Added copyright header.
Arvin Schnell [Sun, 15 Jan 2012 17:49:25 +0000 (18:49 +0100)]
premali:demo: Added copyright header.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali:demo: Kill process on stop of activity.
Arvin Schnell [Sun, 15 Jan 2012 15:56:17 +0000 (16:56 +0100)]
premali:demo: Kill process on stop of activity.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali: add gpu type detection.
Luc Verhaegen [Sun, 15 Jan 2012 20:35:39 +0000 (21:35 +0100)]
premali: add gpu type detection.

Also, when we return state instead of 0, premali works again.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: introduce premali_state
Luc Verhaegen [Sun, 15 Jan 2012 19:19:15 +0000 (20:19 +0100)]
premali: introduce premali_state

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move all code from the tests to lib.
Luc Verhaegen [Sun, 15 Jan 2012 18:23:13 +0000 (19:23 +0100)]
premali: move all code from the tests to lib.

It's pointless keeping them distributed, and impossible to keep in
sync. So we better fix issues in lib directly.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:demo: Use second activity to run demo programs.
Arvin Schnell [Sun, 15 Jan 2012 14:44:22 +0000 (15:44 +0100)]
premali:demo: Use second activity to run demo programs.

Use a second activity to run demo programs so that the back
button works as expected.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali: rework job start ioctls
Luc Verhaegen [Sun, 15 Jan 2012 15:15:34 +0000 (16:15 +0100)]
premali: rework job start ioctls

This to make our userspace mali200/400 agnostic at runtime.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:tests: remove triangle_smoothed_inverted.
Luc Verhaegen [Tue, 10 Jan 2012 00:25:27 +0000 (01:25 +0100)]
premali:tests: remove triangle_smoothed_inverted.

We now have multiple tests, we no longer need this one.

Also, make strip nicer to the eye, and add the fan .gitignore.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: tests: add smoothed fan.
Luc Verhaegen [Tue, 10 Jan 2012 00:02:52 +0000 (01:02 +0100)]
premali: tests: add smoothed fan.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add smoothed strip test.
Luc Verhaegen [Mon, 9 Jan 2012 23:49:17 +0000 (00:49 +0100)]
premali: add smoothed strip test.

To get this strip working, we had to fix our symbol implementation
and the way the layout of those symbols got specificied in the vs
stream.
We now also figured out how array count, and draw mode are fed into
the vs and plbu.

Now we go and kick in the fan open door, just to get the test number
ramped up.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: line up for more tests.
Luc Verhaegen [Mon, 9 Jan 2012 04:40:48 +0000 (05:40 +0100)]
premali: line up for more tests.

* Re-organize makefiles to make the test makefiles themselves
really simple.
* Create a template test, which can be copied into a new directory
and which replays a stream onto the hw.
* Add bmp dumping to the wrapper library. (TODO: find out about
the 2x supersampled height)

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:demo: add make targets for building/installing
Luc Verhaegen [Mon, 9 Jan 2012 02:27:00 +0000 (03:27 +0100)]
premali:demo: add make targets for building/installing

Also clean out some files which are added/update automatically by the
android update project command.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali:demo: make test list dynamic
Arvin Schnell [Mon, 9 Jan 2012 01:03:17 +0000 (02:03 +0100)]
premali:demo: make test list dynamic

Search for programs in /system/bin/premali/premali and use a ListView
for display.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agopremali: add initial android demo.
Arvin Schnell [Mon, 9 Jan 2012 00:59:46 +0000 (01:59 +0100)]
premali: add initial android demo.

Currently starts as a full screen app to allow premali tests to
run without interruption. Presents two buttons, which will
start 2 of the tests in /system/bin/premali/premali.

Signed-off-by: Arvin Schnell <arvin.schnell@gmail.com>
5 years agobuild: reorganise our tree for multiple premali tests
Luc Verhaegen [Mon, 9 Jan 2012 00:33:12 +0000 (01:33 +0100)]
build: reorganise our tree for multiple premali tests

* reorganise our tree to have a libpremali.so and some tests.
* tests now install to /system/bin/premali/[premali/egl]/ where
  and upcoming rudimentary android demo app can find them.
* Add some information on how to bring up a new machine and a new
device in README.android
* Add a makefile which does this for a CM7 image for the haipad (YMMV
on your setup as this is really a simpleton solution)

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agowrapper: fix recursive lock.
Luc Verhaegen [Thu, 5 Jan 2012 17:51:10 +0000 (18:51 +0100)]
wrapper: fix recursive lock.

Apparently the kernel is not returning regularly on a newer
telechips image, it instead waits for a job to come in. But because
our dump needs to have things serialized, before sending oof the job,
the waiting had to return...

Also fix the rather poor implementation fbdev ioctl numbers which
made our applications fail to write anything to fbdev when using
the wrapper.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: use libMali's native shader compiler.
Luc Verhaegen [Wed, 4 Jan 2012 02:41:19 +0000 (03:41 +0100)]
premali: use libMali's native shader compiler.

We now compile our shaders, but we do not properly link them yet,
we just patch the binaries up a bit.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: try to make some initial sense of vs linking.
Luc Verhaegen [Wed, 4 Jan 2012 01:49:26 +0000 (02:49 +0100)]
premali: try to make some initial sense of vs linking.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: removed dumped_stream.c
Luc Verhaegen [Tue, 3 Jan 2012 22:15:25 +0000 (23:15 +0100)]
premali: removed dumped_stream.c

The only purpose it served still was to define from where to map things.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move vs and plbu info handling to gp.[ch]
Luc Verhaegen [Tue, 3 Jan 2012 21:45:36 +0000 (22:45 +0100)]
premali: move vs and plbu info handling to gp.[ch]

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: make plbu setup algorithmic
Luc Verhaegen [Tue, 3 Jan 2012 20:58:12 +0000 (21:58 +0100)]
premali: make plbu setup algorithmic

Well, apart from the render state, that still needs some work,
which will be easier to understand once some initial linking has
been done.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move symbol creation to its own files.
Luc Verhaegen [Tue, 3 Jan 2012 18:00:15 +0000 (19:00 +0100)]
premali: move symbol creation to its own files.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add gp vs info structure.
Luc Verhaegen [Tue, 3 Jan 2012 17:42:34 +0000 (18:42 +0100)]
premali: add gp vs info structure.

This makes assigning symbols and shaders much more dynamic already.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: set gp uniforms and attributes algorithmically.
Luc Verhaegen [Tue, 3 Jan 2012 11:25:26 +0000 (12:25 +0100)]
premali: set gp uniforms and attributes algorithmically.

Also add initial setup of our common (shared description of attributes
and varyings for the vs)

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: generate pp_job ourselves.
Luc Verhaegen [Mon, 2 Jan 2012 22:39:54 +0000 (23:39 +0100)]
premali: generate pp_job ourselves.

Also, add some function to clear the fb before the render, and change
the clear color to some grey (black/white is too confusing).

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move dump handling code to dump.*
Luc Verhaegen [Mon, 2 Jan 2012 20:17:55 +0000 (21:17 +0100)]
premali: move dump handling code to dump.*

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: split plb and job code off to separate files.
Luc Verhaegen [Mon, 2 Jan 2012 17:38:45 +0000 (18:38 +0100)]
premali: split plb and job code off to separate files.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: make plb generation fully algorithmic.
Luc Verhaegen [Mon, 2 Jan 2012 15:31:33 +0000 (16:31 +0100)]
premali: make plb generation fully algorithmic.

We now have a structure that fully describes all the plb data
and we remove address hardcoding for plb.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: manually defrag memory usage.
Luc Verhaegen [Mon, 2 Jan 2012 02:17:34 +0000 (03:17 +0100)]
premali: manually defrag memory usage.

Seems that for everything but the final render and the
plbu stuff, we only need 0x600 bytes.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: we do not use a tile heap or a fragment stack
Luc Verhaegen [Mon, 2 Jan 2012 01:34:03 +0000 (02:34 +0100)]
premali: we do not use a tile heap or a fragment stack

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: create one big allocation.
Luc Verhaegen [Mon, 2 Jan 2012 01:31:37 +0000 (02:31 +0100)]
premali: create one big allocation.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: get a full screen render working properly.
Luc Verhaegen [Mon, 2 Jan 2012 01:21:00 +0000 (02:21 +0100)]
premali: get a full screen render working properly.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: implement shrinking of render.
Luc Verhaegen [Sun, 1 Jan 2012 16:26:00 +0000 (17:26 +0100)]
premali: implement shrinking of render.

For some reason, growing is still broken, am probably
overwriting/missing something... Up next :)

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move some pp register to C code.
Luc Verhaegen [Sun, 1 Jan 2012 13:37:13 +0000 (14:37 +0100)]
premali: move some pp register to C code.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: algorithmically program vertex_uniforms.
Luc Verhaegen [Sun, 1 Jan 2012 13:32:16 +0000 (14:32 +0100)]
premali: algorithmically program vertex_uniforms.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: move final image to new location.
Luc Verhaegen [Sun, 1 Jan 2012 12:54:08 +0000 (13:54 +0100)]
premali: move final image to new location.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agovs: further document commands and variables.
Luc Verhaegen [Sun, 1 Jan 2012 12:41:46 +0000 (13:41 +0100)]
vs: further document commands and variables.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agotools: add mali_info tool.
Luc Verhaegen [Tue, 27 Dec 2011 18:01:48 +0000 (19:01 +0100)]
tools: add mali_info tool.

Does little more than retrieve memory info, core info, and API version.

Written in march already... time flies :)

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add quick 'n dirty fbdev dumper.
Luc Verhaegen [Tue, 27 Dec 2011 17:53:46 +0000 (18:53 +0100)]
premali: add quick 'n dirty fbdev dumper.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: add vs commands.
Luc Verhaegen [Tue, 27 Dec 2011 12:15:41 +0000 (13:15 +0100)]
premali: add vs commands.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: pry apart plbu commands
Luc Verhaegen [Wed, 21 Dec 2011 04:31:15 +0000 (05:31 +0100)]
premali: pry apart plbu commands

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agowrap: add logging to file.
Luc Verhaegen [Tue, 20 Dec 2011 08:48:49 +0000 (09:48 +0100)]
wrap: add logging to file.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agowrap: wrap the essl compiler.
Luc Verhaegen [Mon, 19 Dec 2011 20:23:02 +0000 (21:23 +0100)]
wrap: wrap the essl compiler.

This introduces a header with the api to
__mali_compile_essl_shader

And we now wrap this symbol to allow for printing of both the shader
source and the compiled (but not yet linked) shader binary and
linker streams. Since we have the actual GP/PP memory dumps as well,
we will be able to implement the linking ourselves (and complete it
over time).

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: get rid of tile lists data.
Luc Verhaegen [Sun, 18 Dec 2011 22:33:26 +0000 (23:33 +0100)]
premali: get rid of tile lists data.

These can be easily self generated, especially as the PP
does not care about the order.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: remove superfluous rendering from original dump.
Luc Verhaegen [Sun, 18 Dec 2011 21:47:51 +0000 (22:47 +0100)]
premali: remove superfluous rendering from original dump.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
5 years agopremali: document registers and pixel/texel formats.
Luc Verhaegen [Sun, 18 Dec 2011 20:46:37 +0000 (21:46 +0100)]
premali: document registers and pixel/texel formats.

Move this code to GPL to match the mali kernel space headers.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
6 years agopremali: annotate registers.
Luc Verhaegen [Sat, 17 Dec 2011 07:07:09 +0000 (08:07 +0100)]
premali: annotate registers.

Still a bit of handwaving here...

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
6 years agopremali: add bmp dumper.
Luc Verhaegen [Sat, 17 Dec 2011 05:24:14 +0000 (06:24 +0100)]
premali: add bmp dumper.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
6 years agopremali: succesfully replay a dumped command stream.
Luc Verhaegen [Sat, 17 Dec 2011 03:18:33 +0000 (04:18 +0100)]
premali: succesfully replay a dumped command stream.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
6 years agowrap: add memory dumper.
Luc Verhaegen [Fri, 16 Dec 2011 13:56:42 +0000 (14:56 +0100)]
wrap: add memory dumper.

And dump memory when submitting jobs, and when the job finished
notifications come back...

We clearly see here that there is no change to memory between
the GP finishing and the PP being starting, meaning that all
memory content after starting the GP job is altered by either PP
or GP and not by the driver.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>
6 years agowrap: add address tracking.
Luc Verhaegen [Thu, 15 Dec 2011 17:48:46 +0000 (18:48 +0100)]
wrap: add address tracking.

Signed-off-by: Luc Verhaegen <libv@codethink.co.uk>