summaryrefslogtreecommitdiff
path: root/src/mesa/main/colormac.h
AgeCommit message (Collapse)Author
2011-01-04mesa: preserve 10 bits of precision in the texstore general path for ARGB2101010Marek Olšák
Use make_temp_float_image instead of _make_temp_chan_image. The latter converts the texture to 8 bits/component, losing 2 bits.
2010-12-23mesa: implement new texture format AL44Marek Olšák
Radeon GPUs can do this. R600 can even do render-to-texture. Packing and extracting aren't implemented, but we shouldn't hit them (I think). Tested with swrast, softpipe, and r300g.
2010-12-23mesa: implement new texture format ARGB2101010Marek Olšák
Radeon GPUs do support GL_RGB10_A2.
2010-07-30mesa: Remove unnecessary header from colormac.h.Vinson Lee
2009-11-16AL1616: Add macros to pack two GLushorts into a texelIan Romanick
2009-10-05mesa: add parenthesisBrian Paul
2009-04-01swrast: do texture sampling/combining in floating pointBrian Paul
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-01-20Add RGBA4444 and RGBA5551 texture formats.Thomas Hellstrom
2008-10-10mesa: rename macro params to emphasize that there's no particular color orderingBrian Paul
2004-09-09Update the doxygen configuration file.Jose Fonseca
Minor updates/fixes to the source documentation.
2004-06-19Big-endian texture fixes from Michel Dänzer.Brian Paul
2004-05-12Added big-endian texture formats.Brian Paul
Moved CI->RGBA palette lookup into texel fetch function.
2003-07-17Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell
2003-06-05Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick
2003-03-01Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul
Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
2002-04-04fixup float/ushort conversion macrosBrian Paul
2001-07-16Various 16-bit GLchan fixes and Win32 fixes (Gerk Huisma)Brian Paul
2001-03-11Support for swappable tnl modules.Gareth Hughes
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).
2001-03-08More g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.Brian Paul
2001-03-07added some casts in the 16-bit GLchan macros, just to be safeBrian Paul
2001-01-03More color macro clean-ups.Brian Paul
FLOAT_TO_CHAN() macro removed.
2001-01-02Removed fixed.h (GLfixed now in mtypes.h, fixed-pt macros in mmath.h)Brian Paul
Clean-up of color conversion macros. New mmath.h macros (IROUND, IFLOOR, ICEIL, FRAC) used in various places.
2000-11-24Support for swappable t&l modules, including an example one in the FXKeith Whitwell
driver (enable with FX_ALLOW_VTXFMT=t).
2000-11-16Move the transform and lighting code to two new directoriesKeith Whitwell
math: Provides basic matrix and vector functionality that might be useful to multiple software t&l implementations, and is used by core mesa to manage the Model, Project, etc matrices. tnl: The real transform & lighting code from core mesa, including everything from glVertex3f through vertex buffer handling, transformation, clipping, lighting and handoff to a driver for rasterization. The interfaces of these can be further tightened up, but the basic splitting up of state and code move is done.
2000-10-29More GLchan color channel changes.Brian Paul
Some header file re-org: Move matrix, vertex buffer structs to types.h to fix #include mess. Remove typedef, extern declarations from config.h
2000-10-28New colormac.h file for color-related macros.Brian Paul
Lot's of clean-up in macros.h and mmath.h