summaryrefslogtreecommitdiff
path: root/src/mesa/main/macros.h
AgeCommit message (Collapse)Author
2010-02-19Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-13mesa: Fix compiler warningsKarl Schultz
Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
2009-12-22mesa: Replace CLAMP_SELF() macro with more obvious CLAMP() usage.Eric Anholt
The same code is generated, and readers and static analyzers are happier.
2009-12-03mesa: use _mesa_memcpy for COPY_4FV macroRoland Scheidegger
Gets rid of one of the worst strict-aliasing offenders, and actually produces faster code (at least in some cases, when compiler can use for instance 64bit moves for memcpy). (note _mesa_memcpy should get inlined)
2009-09-03ARB sync: Add infrastructure for glGetInteger64vIan Romanick
2009-06-22mesa: From float type modifier from values to large for singlesIan Romanick
The values 2147483648.0 and 4294967294.0 are too larget to be stored in single precision floats. Forcing these to be singles causes bits to be lost, which results in errors in some pixel transfer tests. This fixes bug #22344.
2009-06-15mesa: Use type modifier for float constants.José Fonseca
2009-03-28mesa: add new signed rgba texture formatRoland Scheidegger
This is a (partial) backport of the signed texture format support in OGL 3.1. Since it wasn't promoted from an existing extension roll our own.
2009-03-12mesa: add support for ATI_envmap_bumpmapRoland Scheidegger
add new entrypoints, new texture format, etc translate in texenvprogram.c for drivers using the mesa-generated tex env fragment program also handled in swrast, but not tested (cannot work due to negative texel results not handled correctly)
2008-09-21mesa: refactor: move various ENUM_TO_x macros into macros.hBrian Paul
2006-10-18minor re-org, doxygen commentsBrian Paul
2005-11-09Bug 4996.Brian Paul
Replace use of FLOAT_TO_USHORT with either CLAMPED_FLOAT_TO_USHORT or UNCLAMPED_FLOAT_TO_USHORT. Same should be done for UBYTE, UINT, etc.
2005-11-09Move COPY_FLOAT() macro down into glide driver.Brian Paul
Rewrite COPY_4FV() macro to not use COPY_FLOAT(), and use integer moves as originally intended.
2004-09-09Update the doxygen configuration file.Jose Fonseca
Minor updates/fixes to the source documentation.
2004-05-14minor doxygen updatesBrian Paul
2004-01-01whitespace changes and new commentsBrian Paul
2003-11-24Merge vtx-0-2-branchKeith Whitwell
2003-10-21Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett
points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
2003-08-30Silence compiler warnings about implicit casts or conversions by supplying ↵Karl Schultz
explicit casts and/or tweaking constant and variable definitions.
2003-08-17Re-org of register files for vertex/fragment programs. Will be easier toBrian Paul
hook in global state references, etc. for ARB programs.
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-04added _mesa_inv_sqrtf() and INV_SQRTF() (Josh Vanderhoof)Brian Paul
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-10-18Add casts to quiet compiler warnings.Karl Schultz
2002-07-09Overhaul of glRead/DrawBuffer() code. Now, swrast->Driver.SetBuffer()Brian Paul
indicates the read AND draw color buffer for all software rasterization. Lots of related clean-ups. See RELNOTES-4.1 for details.
2002-06-12Moved big/little endian code to glheader.h.Brian Paul
Define either MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN.
2002-06-05more big-endian tweaksBrian Paul
2002-06-03bring over Michel Daenzer's DRI changesBrian Paul
2002-02-13More suport for t&l driversKeith Whitwell
Fix GLuint compare bugs Fix RESET_STIPPLE calls
2001-06-11 Committing in .Jouk Jansen
Modified Files: Mesa/src/macros.h Added #define COPY_4UBV() for non i386 machines ----------------------------------------------------------------------
2001-06-08only copy GLubyte[4] as a GLuint on x86Brian Paul
2001-06-08use unoptimized COPY_4UBV code on SPARC to avoid memory alignment problems ↵Brian Paul
(bug 430689)
2001-04-19Fix striding of color material inputs. (Fixes glean colorLitPerf)Keith Whitwell
2001-03-18- Port 3.4 texture utils, texture format work to 3.5 (including newGareth Hughes
FetchTexel routines). - Initial hooks for GL_EXT_texture_filter_anisotropic.
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2001-01-24Lots of GLchan datatype changes.Brian Paul
Added GLvector4us datatype in math/m_vector.[ch] Added _math_trans_4us() in math/m_translate.[ch] Choose GLvector4ub, GLvector4us, GLvector4f at compile time based on CHAN_BITS. Made Driver.ClearColor() and Driver.ClearIndex() optional driver functions. Changed args to Driver.ClearColor(), updated drivers. Reordered files in Makefile.X11
2001-01-08Add a 'RenderPrimitive' callback to t_vb_render.c. Helps out driversKeith Whitwell
that used to require a 'ReducedPrimitiveChange' callback. Various compilation fixes for XFree86. Reverted to the older version of glcore.h used internally in XFree86, and moved it to 'Mesa/include/GL/internal/glcore.h', for compatibility with XFree86.
2000-12-26Major rework of tnl moduleKeith Whitwell
New array_cache module Support 8 texture units in core mesa (now support 8 everywhere) Rework core mesa statechange operations to avoid flushing on many noop statechanges.
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-11-05- Changes for new software rasterizer modulesKeith Whitwell
- Remove support for choosing software fallbacks from core code - Remove partial fallback code from vbrender.c -- drivers are now expected to be able to find a triangle/quad function for every state, even if they have to use _swsetup_Triangle or _swsetup_Quad. - Marked derived variables in the GLcontext struct with a leading underscore '_'.
2000-10-29more minor header file re-org (moved CONST, ASSERT, INLINE to config.h)Brian Paul
2000-10-28New colormac.h file for color-related macros.Brian Paul
Lot's of clean-up in macros.h and mmath.h
2000-10-28Basic work to support deep color channels:Brian Paul
Replace GLubyte with GLchan Replace 255 with CHAN_MAX
2000-09-17new comments, misc clean-upBrian Paul
1999-11-22added SET/CLEAR/TEST_BITS macros, misc clean-upBrian Paul
1999-11-11first big check-in of new Mesa 3.3 codeBrian Paul
1999-11-08header includes clean-up (Daryll)Brian Paul
1999-10-13removed GL_ prefix from memory macrosBrian Paul