Gareth Hughes
d4eb665c60
Add missing header file.
24 jaren geleden
Gareth Hughes
467037de22
Add missing header file include.
24 jaren geleden
Gareth Hughes
22144ab755
Consistent copyright info (version number, date) across all files.
24 jaren geleden
Gareth Hughes
57ffddba98
Minor cleanups.
24 jaren geleden
Gareth Hughes
de6a2e0d19
Clean up install, restore for exec vtxfmts.
24 jaren geleden
Gareth Hughes
d8aa0269cd
Support for swappable tnl modules.
Core Mesa provides a neutral tnl module that verifies the currently
module before installing the tnl function pointers in a lazy fashion.
It also records which tnl functions have been swapped out, and only
restores these when tnl modules themselves are swapped.
Fallback strategies:
Drivers set a bitmask of dangerous stage changes. When such a state
change occurs, the driver should restore the neutral tnl module via
_mesa_restore_exec_vtxfmt(). The neutral tnl module will call
_mesa_update_state(), followed by ctx->Driver.ValidateTnlModule() if the
validation bitmask matches the new state bitmask. The driver should
call _tnl_wakeup_exec() if it can no longer handle the current state,
which will revert to the default tnl module. In this case, previous
vertices should be replayed as required (depending on the current
primitive) after the new tnl module is installed.
If the driver uses chooser functions for any part of the tnl module,
these should generally be reinstalled as part of the fallback to the
neutral tnl module. For example, if the lighting state changes, a
driver might fall back to the neutral tnl module, verify that the
current lighting state can be handled, and use the chooser function to
pick the most efficient implementation of the current lighting state.
It is up to the drivers to detect and handle fallback cases caused by
tnl function calls themselves (such as glTexCoord4f* if the current tnl
module can't handle projected textures, for example).
24 jaren geleden
Gareth Hughes
b1b4036656
Add a couple of missing functions.
24 jaren geleden
Gareth Hughes
53e4bf9afd
More generic vtxfmt template, useful for creating neutral tnl module as
well as fallback functions for driver tnl modules.
24 jaren geleden
Brian Paul
ca8c6a0337
fixed RBGA ifdef typo
24 jaren geleden
Brian Paul
95e02a210e
do fog interpolation if INTERP_FOG is defined, not when INTERP_Z is defined
24 jaren geleden
Brian Paul
896e8bd2d7
processed by indent to improve readability
24 jaren geleden
Brian Paul
417ed16a88
changed bincoeff var to GLfloat, fixes bug introduced in previous check-in
24 jaren geleden
Brian Paul
a28fa45ab7
test 16-bit/channel rendering
24 jaren geleden
Brian Paul
01915e90e6
More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.
24 jaren geleden
Brian Paul
eac57f009e
added an assertion in the init code, just to be safe
24 jaren geleden
Jon Taylor
9cb9401e87
Misc build fixes
24 jaren geleden
Gareth Hughes
4da75f6d91
Add missing copy in _mesa_noop_Color4fv().
24 jaren geleden
Brian Paul
b51b0a847d
fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of potential problems
24 jaren geleden
Brian Paul
249aebdd35
_MinMagThresh[] should be GLfloat
24 jaren geleden
Brian Paul
90ea526114
added some casts in the 16-bit GLchan macros, just to be safe
24 jaren geleden
Brian Paul
be3d539dac
added Driver.BlendColor() function, for completeness
24 jaren geleden
Brian Paul
ac859a4cbd
fixed segfaults when tex unit 1 enabled, but not unit 0 (conform)
24 jaren geleden
Brian Paul
75280a2c74
added missing ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH() macros
24 jaren geleden
Keith Whitwell
89700a4abd
DO_POINT renamed DO_POINTS
24 jaren geleden
Keith Whitwell
0ceb82b838
Changes for ffb
24 jaren geleden
Keith Whitwell
3db5374e66
Fix typo
24 jaren geleden
Brian Paul
d395251b35
GL_EXT_secondary_color test
24 jaren geleden
Brian Paul
d49081302a
GL_EXT_fog_coord test
24 jaren geleden
Keith Whitwell
3c646597cf
Add missing cases for viewport transform. Remove INVALIDATE_STORED_VERTICS
macro
24 jaren geleden
Brian Paul
a11c0bcf97
replaced gl_test_os_katmai*() with _mesa_test_os_katmai*()
24 jaren geleden
Brian Paul
865322f931
more clean-ups
24 jaren geleden
Brian Paul
d62269757b
used indent to clean-up the code
24 jaren geleden
Brian Paul
188f2949ea
more namespace clean-ups
24 jaren geleden
Brian Paul
0883634178
lots of gl_*() to _mesa_*() namespace clean-up
24 jaren geleden
Brian Paul
19bbfc6263
optimized lambda calculation (Klaus Niederkrueger)
24 jaren geleden
Brian Paul
85312e6db1
changed AlphaFunc() ref from GLclampf to GLchan
24 jaren geleden
Brian Paul
eb2b63877a
fixed _mesa_getenv() weirdness
24 jaren geleden
Brian Paul
6a2d72ecff
fixed mistake in alpha buffer clear test
24 jaren geleden
Keith Whitwell
6da33b1249
Uncomment some defaults.
24 jaren geleden
Keith Whitwell
0fe593a71e
Bugfixes for vertex format, templates
24 jaren geleden
Brian Paul
d89c87ac40
added s/w alpha buffer clearing
24 jaren geleden
Brian Paul
b4203c1c49
removed some bogus error checks
24 jaren geleden
Brian Paul
0221e4d6c8
Now there's four possible display modes:
1. normal, shadowed rendering
2. display depth texture image
3. display depth texture mapped onto scene
4. render grayscale scene where gray level = distance from light source
24 jaren geleden
Keith Whitwell
feb555af03
Templates are in working order.
24 jaren geleden
Brian Paul
be3602da41
GLvisual inside GLframebuffer is no longer a pointer, copy the struct instead.
Added context/drawbuffer visual config sanity checking in _mesa_make_current2().
Added some 'const' keywords.
24 jaren geleden
Brian Paul
6a9851d72d
fixed glitches in error checking of imaging extensions
24 jaren geleden
Brian Paul
bf8b5f99a1
signal _NEW_TEXTURE in all teximage functions
24 jaren geleden
Brian Paul
2eb801cda2
added fog coord clamping
24 jaren geleden
Brian Paul
8753b1c397
colortable w/ size=0 wasn't handled correctly
24 jaren geleden
Keith Whitwell
bed4c5bf58
Initialize Line._Width
24 jaren geleden