Commit Graph

31200 Commits

Author SHA1 Message Date
Brian Paul 33681bcf56 st/mesa: use _mesa_clone_fragment_program() 2010-02-14 21:57:14 -07:00
Brian Paul 630b83be84 r600: use new program cloning functions 2010-02-14 21:57:14 -07:00
Brian Paul 79d4954f4f r300: use new program cloning functions 2010-02-14 21:57:14 -07:00
Brian Paul 7a38d8d9a5 glsl: use new program cloning functions 2010-02-14 21:57:14 -07:00
Brian Paul 848835a3d8 mesa: added _mesa_clone_vertex/fragment_program()
To reduce casting elsewhere...
2010-02-14 21:57:14 -07:00
Vinson Lee 7851856a60 r600: Silence uninitialized variable warnings. 2010-02-14 20:49:09 -08:00
Marek Olšák d3d3345cb8 r300g: fix the size of constant buffers
4 more piglit tests pass, sweet.
2010-02-15 04:03:12 +01:00
José Fonseca 21fe86b036 python/retrace: Reconstruct blend state from binary blobs. 2010-02-15 00:25:43 +00:00
José Fonseca e918519fe9 python: Reconstruct blend state objects from binary blobs. 2010-02-15 00:22:59 +00:00
José Fonseca dcdf94c87c trace: Dump blend state as a binary blob.
Gallium interfaces are too fluid -- XML or not is just too much work
trying to accommodate for differences in traces.

SWIG generated bindings are also full of quirks, making unmarshalling
the XML from too hard.

Finally, this is the first step for faster tracing.
2010-02-15 00:22:29 +00:00
José Fonseca 1fc94ab3df trace: Fix constant buffer unwrapping.
Pointer unwrapping should happen before dump the pointer, so that
the real pipe driver pointers are shown, instead of the trace driver's.
2010-02-15 00:19:22 +00:00
José Fonseca d70c769075 util: Avoid dumping masked state. Other minor improvements. 2010-02-14 23:54:22 +00:00
José Fonseca 270279ac99 os: A stream for debug logging.
Just a wrapper around os_log_message. Although it would probably make
more sense to be the other way around.

Also some comment fixes.
2010-02-14 23:53:42 +00:00
José Fonseca d422310498 trace: No need to dump reference counts. 2010-02-14 23:25:34 +00:00
José Fonseca c2b0484e58 python: Pretty-printing of blend state. 2010-02-14 23:25:34 +00:00
José Fonseca 165b824343 util: Helper functions to dump all state objects. 2010-02-14 23:25:34 +00:00
José Fonseca 64606231b8 os: Add a growable string stream. 2010-02-14 23:25:34 +00:00
José Fonseca 78200989d3 os: Complement/improve stream inline helpers. 2010-02-14 23:25:34 +00:00
José Fonseca 33682e5510 os: Fix bad calloc. 2010-02-14 23:25:33 +00:00
José Fonseca dbc7b3da3e trace: Update for os_stream changes. 2010-02-14 23:25:33 +00:00
José Fonseca 323c6f8a2e util: Update for os_stream changes. 2010-02-14 23:25:33 +00:00
José Fonseca 2b4575f16d os: Make streams abstract.
Also replace windows kernel stream with null implementation. It was
severely limited and no easy means to test it now.
2010-02-14 23:25:33 +00:00
Vinson Lee e7660a5442 glut: Silence uninitialized variable warning. 2010-02-14 13:47:58 -08:00
Vinson Lee 0b58d029b9 llvmpipe: Silence unused value warning. 2010-02-14 13:23:21 -08:00
Vinson Lee 7e64701263 svga: Silence uninitialized variable warning. 2010-02-14 13:10:08 -08:00
Marek Olšák 558c15995f r300: add half_float_vertex support 2010-02-14 21:58:52 +01:00
Pauli Nieminen 6e958832af mesa: Don't pass paramter to __builtin_clz which would hve undefined result.
__builtin_clz with parameter 0 has undefined value. When
using -O3 optimizing this would result to too large next
power of two value.

Fix is to check if passed value is 1 and modify formula
for that case.
2010-02-14 19:55:58 +02:00
Marek Olšák 7344e20ce4 r300g: set the correct tiling flags for renderbuffers
MACRO_SWITCH is applied to samplers but not renderbuffers. This commit
fixes incorrect rendering to large and small mipmaps where the large ones
are macrotiled and the small ones are not and both are emitted
in the same CS.

Note that this is still disabled by default (rework of texture transfers
is next).
2010-02-14 18:47:09 +01:00
Marek Olšák c608e19328 r300g: add macrotiling support to texture setup 2010-02-14 18:44:33 +01:00
Marek Olšák f7db96cd8f radeong: flush when changing tiling flags of BO referenced by CS 2010-02-14 18:20:18 +01:00
Marek Olšák f22ddd8e47 r300g: accelerate blitting for all formats by faking the texture format 2010-02-14 18:15:13 +01:00
Brian Paul 2523172a5e src/glu/mesa: fix mem leak (bug 26559) 2010-02-14 10:05:42 -07:00
Brian Paul d4d0629fcd src/glu/mini: fix mem leak (bug 26559) 2010-02-14 10:05:42 -07:00
Brian Paul 291bd19a1a progs/objviewer: close file (bug 26559) 2010-02-14 10:05:42 -07:00
Brian Paul e84eec0003 progs/fp: close file (bug 26559) 2010-02-14 10:05:42 -07:00
Marek Olšák 71ac9551c4 r300g: fix texture formats: A4R4G4B4_UNORM, A1R5G5B5_UNORM, R5G6B5_UNORM 2010-02-14 17:50:29 +01:00
José Fonseca fe889a89d2 scons: Control caching via new SCONS_CACHE_DIR environment variable.
This serves several purposes:
- disable caching in situations were is it useless or undesired
- share caches among all trees
- simplify purging the cache (when it's a single location)
- move the cache out of the tree, since that slows downs IDEs considerably

To retain previous behavior just define do

  export SCONS_CACHE_DIR=$PWD/build/cache

before invoking scons.
2010-02-14 15:34:39 +00:00
José Fonseca abdcdb3db7 llvmpipe: s/debug_dump_/util_dump_/ 2010-02-14 15:21:06 +00:00
José Fonseca da8de038da gallivm: s/debug_dump_/util_dump_/ 2010-02-14 15:20:57 +00:00
José Fonseca c16a8e0dd5 util: Rename u_debug_dump.[ch] -> u_dump.[ch].
I have more plans for this than mere debugging -- it will be an helper
to provide human readible representations of all gallium state for
the python state tracker.
2010-02-14 15:20:34 +00:00
José Fonseca db18996d3d mesa: Add missing include. 2010-02-14 13:28:29 +00:00
José Fonseca fd3237c97d gallium: Remove previously forgotten pf_name() prototype. 2010-02-14 13:28:17 +00:00
José Fonseca 13701aae40 draw: Use util_format_name(). 2010-02-14 13:27:00 +00:00
José Fonseca c667a5b95d util: Use util_format_name(). 2010-02-14 13:26:51 +00:00
José Fonseca 8f2b2d113f cell: Use util_format_name(). 2010-02-14 13:26:46 +00:00
José Fonseca 9189d04cdb llvmpipe: Use util_format_name(). 2010-02-14 13:26:37 +00:00
José Fonseca db2df0aa9b nv: Use util_format_name(). 2010-02-14 13:26:30 +00:00
José Fonseca 06f76e4a6b r300g: Use util_format_name(). 2010-02-14 13:25:22 +00:00
José Fonseca 6f5e0539dc trace: Use util_format_name(). 2010-02-14 13:25:06 +00:00
José Fonseca ee65faffc1 xorg: Use util_format_name(). 2010-02-14 13:24:58 +00:00