Commit graph

7093 commits

Author SHA1 Message Date
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
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
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
Marek Olšák
71ac9551c4 r300g: fix texture formats: A4R4G4B4_UNORM, A1R5G5B5_UNORM, R5G6B5_UNORM 2010-02-14 17:50:29 +01: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
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
José Fonseca
5784381b1e util: Add pf_name() replacement: util_format_name(). 2010-02-14 13:23:32 +00:00
José Fonseca
11a981fda1 trace: Fix generated XML. 2010-02-14 12:47:40 +00:00
José Fonseca
f1848977e8 python: Tell swig how to index per-rendertarget blend state. 2010-02-14 12:06:37 +00:00
José Fonseca
04cc5055db python: Pass p_format.h as-is to swig now that it has no inlines. 2010-02-14 11:26:58 +00:00
José Fonseca
50812e633f progs/gallium/python: New home for python statetracker scripts. 2010-02-14 11:16:41 +00:00
Vinson Lee
1462c1299c llvmpipe: Silence uninitialized variable warning. 2010-02-13 23:48:40 -08:00
Vinson Lee
71e750f482 softpipe: Silence uninitialized variable warnings. 2010-02-13 22:51:34 -08:00
Marek Olšák
260ec80f11 st/python: fix build error after gallium-screen-context merge 2010-02-14 03:20:09 +01:00
Marek Olšák
804a6d6a68 r300g: fix scons build 2010-02-14 03:20:01 +01:00
Brian Paul
85425b3b60 softpipe: fix broken cubemap / mipmap selection code
This is a quick-fix for the time being...

The per-face mipmap LOD computation was invalid at cube edges.  In
mip_filter_nearest/linear() we were trying to compute LOD using
texcoords that were sometimes indexes into different cube faces.
The subtraction used to compute the partial derivatives basically
gave random values, so the LOD was unpredictable.  This fix simply
uses the same cube face for all four pixels in the quad.  The per-
face texcoords all reference the same cube face so the partial
deriviates are computed properly.

A more elaborate fix would involve computing the LOD at the same
time as we choose the cube faces.  But for now, this solution works
well and allows the piglit/cubemap test to pass.

(cherry picked from commit 1ff9cd5079)
2010-02-13 17:47:23 -07:00
José Fonseca
a583c3ab47 wgl: Implement wglSwapMultipleBuffers. 2010-02-13 15:43:49 +00:00
José Fonseca
6b1193820f svga: Fix texture border color.
Also opposite ordering.
2010-02-13 15:43:33 +00:00
Marek Olšák
43b4d2a048 r300g: do not invalidate texture caches when only sampler state is changed 2010-02-13 15:44:43 +01:00
Marek Olšák
8eb4cd5b82 r300g: cleanup the emission of RS block state
Emit as few regs as possible.
2010-02-13 15:44:43 +01:00
Marek Olšák
67049b59fd r300g: cleanup the emission of framebuffer state
Some emits are not needed anymore.
2010-02-13 15:44:43 +01:00
Marek Olšák
8e2f9f4009 r300g: disable independent blend enables
Not supported by r300.
2010-02-13 15:44:43 +01:00
Marek Olšák
75910e96dc r300g: emit INDEPENDENT_COLORFORMAT_ENABLE only on r5xx 2010-02-13 15:44:42 +01:00
Vinson Lee
4123df2074 st/xlib: Remove unnecessary header. 2010-02-12 23:24:22 -08:00
Vinson Lee
f618641631 svga: Silence uninitialized variable warning. 2010-02-12 22:33:37 -08:00
Corbin Simpson
6a07a1738c util: Properly init memory for blitter CSOs.
Fixes misrender on r300g.
2010-02-12 20:48:46 -08:00
José Fonseca
cd5d760889 svga: A few more tweaks to blend color state emission. 2010-02-12 23:48:22 +00:00
José Fonseca
6af833add2 svga: Clamp max cube texture levels to supported max 2d levels. 2010-02-12 23:46:58 +00:00