aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_noop.c
Commit message (Collapse)AuthorAgeFilesLines
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-9/+2
| | | | | | Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values instead of specific vertex attributes. Remove the EdgeFlagv function from the GLvertexformat struct.
* Make most of the _mesa_noop_*() functions static.Brian Paul2006-04-201-118/+140
| | | | | | | Generate GL_INVALID_VALUE, not GL_INVALID_ENUM when glVertexAttrib is called with a bad index. Use _mesa_noop_vtxfmt_init() in DRI drivers to initialize vertex format struct.
* More GLSL code:Michal Krol2006-04-111-28/+25
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* Fix typo.Keith Whitwell2005-12-141-1/+1
|
* Wrap every place that accesses a dispatch table with a macro. A new script-Ian Romanick2005-07-181-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generated file, called src/mesa/glapi/dispatch.h, is added. This file contains three macros for each API function. It contains a GET, a SET, and a CALL. Each of the macros take a pointer to the context and a pointer to the dispatch table. In several threads on mesa3d-dev we discussed replacing _glapi_add_entrypoint with a new function called _glapi_add_dispatch. For this discussion, the important difference between the two is that the caller of _glapi_add_dispatch does *not* know what the dispatch offset will be at compile time. Because of this callers need to track the dispatch offset returned by _glapi_add_dispatch. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2 The downside is that driver code then has to access the dispatch table two different ways. It accesses it using structure tags (e.g., exec->Begin) for functions with fixed offsets and via a remap table (e.g., exec[ remap->NewExtensionFunction ]) for functions without fixed offsets. Yuck! Using the macros allows both types of functions to be accessed identically. If a driver needs to set a pointer for Begin, it does 'SET_Begin(ctx, exec, my_begin_function)'. If it needs to set a pointer for NewExtensionFunction, it does 'SET_NewExtensionFunction(ctx, exec, my_NewExtensionFunction_function)'. Furthermore, if at some point in the future a static offset is assigned for NewExtensionFunction, only the macros need to change (instead of every single place that accesses a table for that function). This code differs slightly from the originally posted patches in that the CALL, GET, and SET marcos no longer take a context pointer as a parameter. Brian Paul had suggested that the remap table could be stored as a global since it would be set at CreateScreen time and would be constant for all contexts. This change reflects that feedback. http://marc.theaimsgroup.com/?t=112087194700001&r=1&w=2
* s/NORMAL/FOG/ (J.P. Delport)Brian Paul2005-04-181-3/+3
|
* Change the dispatch offsets for the VertexAttrib*NV functions so they don'tBrian Paul2004-11-271-8/+105
| | | | | | | alias with the corresponding ARB functions. GL_ARB_vertex_shader (and OpenGL 2.0's) VertexAttrib functions don't alias with conventional vertex attributes, as GL_NV_vertex_program does. So, the ARB and NV version of VertexAttrib need to be distinct.
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+1
| | | | 1015696)
* Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.Ian Romanick2004-05-271-31/+31
|
* Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragmentBrian Paul2004-04-231-2/+2
| | | | | | | program is enabled AND the currently bound program is valid. Check _Enable instead of Enable to prevent things from blowing up when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually defining a program.
* jump through dispatch table instead of calling gl functions directlyBrian Paul2004-02-241-32/+34
|
* glDrawArrays loop was wrongBrian Paul2004-02-241-5/+4
|
* Add missing GLAPIENTRYKarl Schultz2003-12-041-59/+59
|
* Remove unnecessary usage of __FUNCTION__.Brian Paul2003-11-251-17/+17
| | | | #define MESA_FUNCTION to __FUNCTION__ if MESA_DEBUG is defined.
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-153/+416
|
* Store material attributes in an Attrib[] style array. This is aKeith Whitwell2003-08-051-43/+15
| | | | | first step to reviving/rescuing the 'vtx' rework from the old mesa tree.
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* Added support for NV_light_max_exponent.Ian Romanick2003-05-301-3/+3
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-4/+3
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* First batch of code for GL_NV_fragment_program.Brian Paul2003-01-141-9/+9
| | | | | Re-org of some GL_NV_vertex_program code. Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
* bring in changes from dri tcl branchKeith Whitwell2002-04-091-9/+43
|
* vertex program check-inBrian Paul2001-12-141-34/+53
|
* Support for floating point color representation in tnl module.Keith Whitwell2001-04-281-65/+61
|
* Make COPY_FLOAT available to a wider audience.Gareth Hughes2001-03-201-6/+1
|
* Add missing copy in _mesa_noop_Color4fv().Gareth Hughes2001-03-071-18/+18
|
* lots of gl_*() to _mesa_*() namespace clean-upBrian Paul2001-03-031-6/+6
|
* Lots of GLchan datatype changes.Brian Paul2001-01-241-46/+80
| | | | | | | | | 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
* Removed fixed.h (GLfixed now in mtypes.h, fixed-pt macros in mmath.h)Brian Paul2001-01-021-13/+19
| | | | | Clean-up of color conversion macros. New mmath.h macros (IROUND, IFLOOR, ICEIL, FRAC) used in various places.
* Major rework of tnl moduleKeith Whitwell2000-12-261-30/+26
| | | | | | | 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.
* New files...Keith Whitwell2000-11-241-0/+551