Michal Krol
336a4f84e8
python/regress: Add more vertex shader test cases.
2009-04-02 10:00:09 +02:00
Brian Paul
bd32640f77
swrast: remove unused integer lerp functions
2009-04-01 20:24:23 -06:00
Brian Paul
7fbae9f41d
mesa: get rid of gl_texture_object::_BorderChan
2009-04-01 20:24:23 -06:00
Brian Paul
79c55e55f8
dri: use BorderColor instead of _BorderChan
2009-04-01 20:24:23 -06:00
Brian Paul
7aed2b0c30
swrast: remove old texture_apply() code; always use texture combine code
2009-04-01 20:24:22 -06:00
Brian Paul
84b24efe8d
swrast: fix bad optimization check
2009-04-01 20:24:22 -06:00
Brian Paul
0d8d904823
swrast: remove unused parameter
2009-04-01 20:24:22 -06:00
Brian Paul
aef2e1c1dc
swrast: minor improvements, clean-ups in texcombine code
2009-04-01 20:24:22 -06:00
Brian Paul
efe3d10aea
mesa: simplify ycbcr->rgb conversion code
2009-04-01 20:24:22 -06:00
Brian Paul
611128365d
mesa: convert more texture fetch functions to return GLfloat
2009-04-01 20:24:22 -06:00
Brian Paul
cb5bd7d4d4
mesa: switch texel fetch functions from GLchan to GLfloat
2009-04-01 20:24:22 -06:00
Brian Paul
0695413d2b
swrast: use float4_array typedef to simplify the code a bit
2009-04-01 20:24:22 -06:00
Brian Paul
bd9b2be828
mesa: texture combine clean-ups
...
Use MAX_COMBINER_TERMS instead of 4.
Rename some vars.
Update comments.
2009-04-01 20:20:03 -06:00
Brian Paul
a35ad020f9
swrast: refactor depth/shadow sampling code
2009-04-01 20:17:19 -06:00
Brian Paul
933f3b13c3
swrast: general clean-up of texture combine code
2009-04-01 20:17:19 -06:00
Brian Paul
de2afd8688
swrast: do texture sampling/combining in floating point
...
The code's cleaner and a step toward supporting float-valued texture sampling.
Some optimizations for common cases can be added and re-enabled...
2009-04-01 20:17:19 -06:00
Brian Paul
f8304bf1ed
demos: added progs/glsl/linktest.c to test linking of separate compilation units
2009-04-01 19:54:35 -06:00
Brian Paul
49fb750a68
glsl: implement compiling/linking of separate compilation units
...
A shader program may consist of multiple shaders (source code units).
If we find there are unresolved functions after compiling the unit that
defines main(), we'll concatenate all the respective vertex or fragment
shaders then recompile.
This isn't foolproof but should work in most cases.
2009-04-01 19:54:35 -06:00
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