Thomas Hellstrom
c952b3e907
dri glx: Propagate driver MakeCurrent errors.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
16 anos atrás
Michal Krol
fbabeb9b56
python/regress: Do not create zbuf for vertex shader test.
16 anos atrás
Michal Krol
336a4f84e8
python/regress: Add more vertex shader test cases.
16 anos atrás
Brian Paul
bd32640f77
swrast: remove unused integer lerp functions
16 anos atrás
Brian Paul
7fbae9f41d
mesa: get rid of gl_texture_object::_BorderChan
16 anos atrás
Brian Paul
79c55e55f8
dri: use BorderColor instead of _BorderChan
16 anos atrás
Brian Paul
7aed2b0c30
swrast: remove old texture_apply() code; always use texture combine code
16 anos atrás
Brian Paul
84b24efe8d
swrast: fix bad optimization check
16 anos atrás
Brian Paul
0d8d904823
swrast: remove unused parameter
16 anos atrás
Brian Paul
aef2e1c1dc
swrast: minor improvements, clean-ups in texcombine code
16 anos atrás
Brian Paul
efe3d10aea
mesa: simplify ycbcr->rgb conversion code
16 anos atrás
Brian Paul
611128365d
mesa: convert more texture fetch functions to return GLfloat
16 anos atrás
Brian Paul
cb5bd7d4d4
mesa: switch texel fetch functions from GLchan to GLfloat
16 anos atrás
Brian Paul
0695413d2b
swrast: use float4_array typedef to simplify the code a bit
16 anos atrás
Brian Paul
bd9b2be828
mesa: texture combine clean-ups
Use MAX_COMBINER_TERMS instead of 4.
Rename some vars.
Update comments.
16 anos atrás
Brian Paul
a35ad020f9
swrast: refactor depth/shadow sampling code
16 anos atrás
Brian Paul
933f3b13c3
swrast: general clean-up of texture combine code
16 anos atrás
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...
16 anos atrás
Brian Paul
f8304bf1ed
demos: added progs/glsl/linktest.c to test linking of separate compilation units
16 anos atrás
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.
16 anos atrás
Brian Paul
1ab225017e
mesa: use correct tex unit lod bias for TXB instruction
16 anos atrás
Brian Paul
9cc79fc2dc
swrast: fix glDrawBuffer(GL_FRONT_AND_BACK)
We weren't putting the right colors into the back buffer in this mode.
16 anos atrás
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.
16 anos atrás
Corbin Simpson
935e6b1924
r300-gallium: Translate vertex shader magic numbers.
16 anos atrás
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.
16 anos atrás
Corbin Simpson
c4fb791909
r300-gallium: Add vertex shader for surface_copy.
16 anos atrás
José Fonseca
8d72caea3f
util: Fix x86_64 build.
16 anos atrás
José Fonseca
346e127732
util: Lookup symbol names from addresses.
Nice for stack backtraces.
Windows-only for now.
16 anos atrás
Michal Krol
d11a476ead
tgsi: Fix structure members initialisation.
16 anos atrás
Michal Krol
4900545bba
python/regress: Add vertex shader LRP test.
16 anos atrás
Michal Krol
16c281dfb5
python/regress: Add vertex shader FRC test.
16 anos atrás
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.
16 anos atrás
Brian Paul
2555bed7fc
mesa: minor tweaks in append_token() for printing state var strings
16 anos atrás
Michal Krol
daec1035a2
tgsi: Lookup alternate instruction mnemonics when parsing tgsi text.
16 anos atrás
Michal Krol
1aa4b79dc7
tgsi: Provide alternate instruction mnemonics in tgsi info.
16 anos atrás
Michal Krol
9d77663abb
tgsi/doc: Fix typo.
16 anos atrás
Michal Krol
998234ced2
python/regress: Add vertex shader EX2 test.
16 anos atrás
Michal Krol
449bab61b3
python/regress: Add vertex shader DST test.
16 anos atrás
Michal Krol
65cbe7e69c
python/regress: Fix vertex shader XPD test.
16 anos atrás
Michal Krol
dd6f1771c9
python/regress: Indent.
16 anos atrás
Michal Krol
5d8677469b
python/regress: Add vertex shader test for XPD.
16 anos atrás
Michal Krol
541d74423a
python/regress: Rename test files from *.txt to *.sh -- won't be .gitignored.
16 anos atrás
Michal Krol
e8b5d170ab
python/regress: Add more vertex shader tests.
16 anos atrás
Corbin Simpson
27d886ae33
r300-gallium: Backwards test.
Wow, how long's that been there? Embarrassing.
16 anos atrás
Corbin Simpson
7540c847f1
r300-gallium: Moar vert shader emit.
16 anos atrás
Corbin Simpson
ddd0c94f04
r300-gallium: Add vertex shader emit.
16 anos atrás
Corbin Simpson
63529c731a
r300-gallium: Stubs for vertex shaders.
16 anos atrás
Brian Paul
a44f54912e
tgsi: added some helpful debug functions in the tgsi interpreter
Check for NaN/Inf, print exec vectors, print temp registers.
16 anos atrás
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.
16 anos atrás
Brian Paul
ef6f1027ff
draw: added Nan/Inf assertion in debug code
16 anos atrás