Commit Graph

22586 Commits

Author SHA1 Message Date
Brian Paul
1ab225017e mesa: use correct tex unit lod bias for TXB instruction 2009-04-01 18:50:07 -06:00
Brian Paul
9cc79fc2dc swrast: fix glDrawBuffer(GL_FRONT_AND_BACK)
We weren't putting the right colors into the back buffer in this mode.
2009-04-01 18:44:15 -06:00
Brian Paul
e4b27b4a69 mesa: fix a recursive display list problem
This fixes an issue when compiling glCallList() into another display list
when the mode is GL_COMPILE_AND_EXECUTE.

Before, the call to glCallList() called _mesa_save_CallList() which called
neutral_CallList() which then called _mesa_save_CallList() again.  In the
end, the parent display list contained two calls to the child display list
instead of one.

Let's be on the lookout for regressions caused by this change for a while
before we cherry-pick this elsewhere.
2009-04-01 17:39:26 -06:00
Corbin Simpson
935e6b1924 r300-gallium: Translate vertex shader magic numbers. 2009-04-01 15:52:32 -07:00
Corbin Simpson
28fa809c9e r300-gallium: Fix compiler warnings.
"const" is the right keyword, but I can't do that without adding a bunch
of really annoying and ugly const casts everywhere, and frankly,
that's really stupid, so instead, just don't make them const.
2009-04-01 15:24:28 -07:00
Corbin Simpson
c4fb791909 r300-gallium: Add vertex shader for surface_copy. 2009-04-01 15:14:19 -07:00
José Fonseca
8d72caea3f util: Fix x86_64 build. 2009-04-01 22:05:07 +01:00
José Fonseca
346e127732 util: Lookup symbol names from addresses.
Nice for stack backtraces.

Windows-only for now.
2009-04-01 21:29:58 +01:00
Michal Krol
d11a476ead tgsi: Fix structure members initialisation. 2009-04-01 22:06:53 +02:00
Michal Krol
4900545bba python/regress: Add vertex shader LRP test. 2009-04-01 16:06:22 +02:00
Michal Krol
16c281dfb5 python/regress: Add vertex shader FRC test. 2009-04-01 16:06:20 +02:00
Brian Paul
f8dd6594bf glsl: fix texgen state variable tokens in emit_statevars()
This fixes broken variable indexing into the gl_Eye/ObjectPlaneS/T/R/Q arrays.
See bug 20986.
2009-04-01 07:37:08 -06:00
Brian Paul
2555bed7fc mesa: minor tweaks in append_token() for printing state var strings 2009-04-01 07:37:08 -06:00
Michal Krol
daec1035a2 tgsi: Lookup alternate instruction mnemonics when parsing tgsi text. 2009-04-01 11:49:55 +02:00
Michal Krol
1aa4b79dc7 tgsi: Provide alternate instruction mnemonics in tgsi info. 2009-04-01 11:45:25 +02:00
Michal Krol
9d77663abb tgsi/doc: Fix typo. 2009-04-01 11:25:58 +02:00
Michal Krol
998234ced2 python/regress: Add vertex shader EX2 test. 2009-04-01 11:25:02 +02:00
Michal Krol
449bab61b3 python/regress: Add vertex shader DST test. 2009-04-01 11:09:37 +02:00
Michal Krol
65cbe7e69c python/regress: Fix vertex shader XPD test. 2009-04-01 11:08:41 +02:00
Michal Krol
dd6f1771c9 python/regress: Indent. 2009-04-01 10:58:46 +02:00
Michal Krol
5d8677469b python/regress: Add vertex shader test for XPD. 2009-04-01 10:56:53 +02:00
Michal Krol
541d74423a python/regress: Rename test files from *.txt to *.sh -- won't be .gitignored. 2009-04-01 10:34:08 +02:00
Michal Krol
e8b5d170ab python/regress: Add more vertex shader tests. 2009-04-01 10:34:05 +02:00
Corbin Simpson
27d886ae33 r300-gallium: Backwards test.
Wow, how long's that been there? Embarrassing.
2009-03-31 20:24:50 -07:00
Corbin Simpson
7540c847f1 r300-gallium: Moar vert shader emit. 2009-03-31 20:23:55 -07:00
Corbin Simpson
ddd0c94f04 r300-gallium: Add vertex shader emit. 2009-03-31 18:58:03 -07:00
Corbin Simpson
63529c731a r300-gallium: Stubs for vertex shaders. 2009-03-31 18:32:10 -07:00
Brian Paul
a44f54912e tgsi: added some helpful debug functions in the tgsi interpreter
Check for NaN/Inf, print exec vectors, print temp registers.
2009-03-31 16:21:51 -06:00
Brian Paul
919f57078b mesa: fix bug in GPU codegen for fixed-function two-sided lighting
The 'dots' register wasn't getting properly un-negated and un-swizzled
after emitting the code for back-face lighting.  So, if more than one
light source was enabled, the specular exponent for the next light source
was wrong.

During execution we were evaluating pow(x, y) where y was negative instead
of positive.  This led to the outcome being zero or NaN.

This fixes the occasional black triangles seen in isosurf when hacked to
enable two-sided lighting.
2009-03-31 16:21:51 -06:00
Brian Paul
ef6f1027ff draw: added Nan/Inf assertion in debug code 2009-03-31 16:21:51 -06:00
Brian Paul
d0f28b6dd9 softpipe: use util_is_inf_or_nan()
And print/warn NaN/Inf in print_vertex().
2009-03-31 16:21:51 -06:00
Brian Paul
3705d03b0f gallium: added util_is_inf_or_nan() function to u_math.h 2009-03-31 16:21:51 -06:00
Brian Paul
53d507562b mesa: minor reformatting, whitespace changes 2009-03-31 16:21:51 -06:00
Michal Krol
3f3db46911 python/regress: Initial commit for vertex shader regression tests. 2009-04-01 00:20:56 +02:00
Jeremy Huddleston
093ad509fc Updated CPU_TO_LE32 to work on darwin 2009-03-31 15:08:49 -07:00
Jeremy Huddleston
f25c6b164f Fix compiling indirect.c when GLX_DIRECT_RENDERING is not defined
(cherry picked from commit b65bc1b6cb72df950c2e26446936804dfcdc432c)
2009-03-31 15:01:45 -07:00
José Fonseca
10b987ae7f python/test: New test for surface copies. 2009-03-31 19:16:17 +01:00
José Fonseca
89ecefb887 python/test: Ignore test output files. 2009-03-31 18:39:18 +01:00
José Fonseca
e2cdc99788 python/test: Cleanup. 2009-03-31 18:39:06 +01:00
José Fonseca
f784906eb9 python/test: Dump classification tree to text file too. 2009-03-31 18:38:48 +01:00
José Fonseca
fee78c0c1f python/test: Set executable permission bit. 2009-03-31 18:02:27 +01:00
José Fonseca
4d9dd3ecef python/test: New test for rendering into textures. 2009-03-31 18:01:32 +01:00
José Fonseca
fcc2598fff util: Enable assembly breakpointt on x86_64.
A breakpoint is much nicer than abort when gdb is attached.
2009-03-31 18:00:46 +01:00
José Fonseca
71384f29f1 python/test: Limit tree depth. 2009-03-31 17:23:48 +01:00
José Fonseca
65554af5c3 python/test: Infer type (continuous/discrete) from object type. 2009-03-31 17:21:52 +01:00
José Fonseca
bdfc411b44 python/test: Flush stdout to keep in sync with debug info on stderr. 2009-03-31 16:39:11 +01:00
José Fonseca
10b808156b python/test: Dump a classification tree of the results when finished testing. 2009-03-31 16:38:03 +01:00
José Fonseca
6dd0a5f3d6 python/test: New test for texture transfers. 2009-03-31 12:29:13 +01:00
José Fonseca
7d5d5a6cb7 python/test: More descriptive test name. 2009-03-31 12:29:13 +01:00
José Fonseca
b4b4986f1f python: Make get/put_tile_raw more user friendlier. 2009-03-31 12:29:13 +01:00