aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dd.h
Commit message (Collapse)AuthorAgeFilesLines
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-0/+2
|
* minor doxygen updatesBrian Paul2004-05-141-3/+0
|
* Removed the old teximage code.Brian Paul2004-04-271-11/+7
| | | | | Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
* Implemented support for software-based AUX color buffers.Brian Paul2004-03-211-17/+3
| | | | | | Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
* Make it easier for drivers to create "subclasses" of the existingKeith Whitwell2004-02-141-1/+11
| | | | | | | program struct hierarchy. Add driver callbacks to enable the above and make it possible to track more changes to program objects.
* Added support for EXT_blend_equation_separate / ATI_blend_equation_separate.Ian Romanick2004-01-271-1/+1
| | | | | The internal driver interface was also changed to use BlendEquationSeparate instead of BlendEquation.
* added device driver hooks for BindProgram, NewProgram, DeleteProgramBrian Paul2004-01-231-0/+13
|
* Remove dd_function_table::BlendFunc. All drivers now useIan Romanick2004-01-211-1/+0
| | | | | | dd_function_table:BlendFuncSeparate. If a driver does not actually support EXT_blend_func_separate, it can assume that the RGB and alpha blend functions are the same.
* Before calling _mesa_create_context(), initialize a dd_function_table structBrian Paul2004-01-201-59/+40
| | | | | | | | | | by calling _mesa_init_driver_functions() and then plugging in the driver- specific functions. In particular, make sure ctx->Driver.NewTextureObject points to the appropriate driver function so that _all_ texture objects are augmented with the driver-specific data. Put in a bunch of assertions in the texture-related driver functions that texObj->DriverData is valid. Remove old dead code in near future.
* Merge vtx-0-2-branchKeith Whitwell2003-11-241-17/+18
|
* texture compressionDaniel Borca2003-10-291-0/+11
|
* Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett2003-10-211-61/+61
| | | | | points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
* move some functions, add some commentsBrian Paul2003-09-171-32/+40
|
* Added most of the infrastructure required to supportIan Romanick2003-09-091-0/+33
| | | | ARB_vertex_buffer_object. THIS IS INCOMPLETE.
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-240/+492
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* New device driver hooks for texture object and texture image creation toBrian Paul2003-04-011-4/+11
| | | | | allow drivers to implement C++-like inheritance via containment. Lots of assorted clean-ups related to texture objects.
* Another round of glRead/DrawBuffer() clean-ups and simplifications.Brian Paul2002-10-111-2/+6
| | | | | | | Replaced ctx->Color._DriverDrawBuffer with swrast->CurrentBuffer. Replaced ctx->Pixel._DriverReadBuffer with ctx->Pixel._ReadSrcMask. swrast->Driver.SetBuffer() takes FRONT/BACK_LEFT/RIGHT_BIT values now. Added tokens and code for GL_AUX buffers, for completeness.
* Changed a number of context fields from GLchan to GLfloat (such as ClearColor).Brian Paul2002-10-041-9/+1
| | | | | | Also changed parameter types for some driver functions (like ctx->Driver.Clear- Color). Updated all the device drivers. Someday, we want to support 8, 16 and 32-bit channels dynamically at runtime.
* new texture compression infrastructureBrian Paul2002-09-271-50/+1
|
* GL_EXT_stencil_two_side extension, not 100% complete yet.Brian Paul2002-09-061-1/+10
|
* Overhaul of glRead/DrawBuffer() code. Now, swrast->Driver.SetBuffer()Brian Paul2002-07-091-24/+11
| | | | | indicates the read AND draw color buffer for all software rasterization. Lots of related clean-ups. See RELNOTES-4.1 for details.
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-8/+7
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* vertex program attribute array workBrian Paul2002-04-211-1/+3
|
* buffer resize changesBrian Paul2002-03-161-6/+12
|
* More suport for t&l driversKeith Whitwell2002-02-131-3/+3
| | | | | Fix GLuint compare bugs Fix RESET_STIPPLE calls
* vertex program check-inBrian Paul2001-12-141-1/+4
|
* dispatch changes to minimize hassle with XFree86 libGLBrian Paul2001-12-041-9/+9
|
* API dispath updatesBrian Paul2001-11-181-9/+9
|
* Enable GL_ARB_texture_compression for XMesa/GLX driver. TextureBrian Paul2001-06-151-16/+6
| | | | | compression isn't really implmented. Just updated glTexImageXD() to accept compressed internal format tokens.
* More texture image changes.Brian Paul2001-04-041-1/+9
| | | | | | | | | | | | 1. Added ctx->Driver.ChooseTextureFormat() function. Examines user's internalFormat, format, type params and returns a gl_texture_format. 2. _mesa_store_teximage[123]d() calls ctx->Driver.ChooseTextureFormat(), allocates storage and transfers the image into the desired format. 3. _mesa_transfer_teximage() now takes a gl_texture_format to describe the destination format. Any combination of input format/type and output gl_texture_format is accepted. Uses optimized _mesa_convert_- texsubimage[123]d() functions when possible. 3. DRI driver's TexImage[123]D functions should be a lot simpler now.
* Add PolygonOffset driver callback.Gareth Hughes2001-03-221-8/+9
|
* Split driver struct into swrast/tnl/core components.Keith Whitwell2001-03-191-365/+33
|
* Consistent copyright info (version number, date) across all files.Gareth Hughes2001-03-121-2/+2
|
* Support for swappable tnl modules.Gareth Hughes2001-03-111-49/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* added Driver.BlendColor() function, for completenessBrian Paul2001-03-071-1/+2
|
* changed AlphaFunc() ref from GLclampf to GLchanBrian Paul2001-03-031-2/+2
|
* Template workKeith Whitwell2001-02-241-13/+9
|
* Updated Driver.CopyTexImage[12]D and Driver.CopyTexSubImage[123]D functionsBrian Paul2001-02-191-35/+24
| | | | | so they work like the other teximage functions. Added fallback routines to texstore.c for drivers to use.
* Fix propogation of material values in VB's that don't reach the lightingKeith Whitwell2001-02-151-1/+10
| | | | | | | | | stage. (Materials now treated more like colors, etc.). Continue whipping the dd templates into shape. Remove old NormalLength code; may come back as a driver helper, but not useful for, eg. hardware t&l drivers.
* Overhaul of texture image handling.Brian Paul2001-02-061-112/+105
| | | | | | | | | | 1. gl_texture_image struct's Data pointer points to images in driver's format. 2. Added FetchTexel() function pointer to struct gl_texture_image. 3. Changed Driver Tex[Sub]Image functions, return void now. 4. Texture storage/fetch code in new texstore.c file. 5. Removed texture.[ch] - functions moved to state.c Note: FX driver updates not finished yet.
* Use a lookup table to compute exponents in tnl fogging code. SlightlyKeith Whitwell2001-02-061-5/+5
| | | | clean up the shine table lookup macro.
* Removed knowledge of swrast Clear/Bitmap/Accum/Draw/Read/CopyPixelsKeith Whitwell2001-01-291-30/+41
| | | | | | | | | | | | functions from core mesa -- if drivers need these fallbacks they must now call them themselves. Introduced hooks for clip-vertex-interpolation and the rendering of clipped lines and polygons. Allows drivers to interpolate their hardware-format vertices directly. Used in dri drivers to replace fastpath code. Slight optimizations to pipeline build/run routines.
* Lots of GLchan datatype changes.Brian Paul2001-01-241-14/+3
| | | | | | | | | 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
* Added PointSize and PointParametersfv to dd interface, for completeness.Brian Paul2001-01-091-108/+134
| | | | Clean-up and updated comments in dd.h file.
* Add a 'RenderPrimitive' callback to t_vb_render.c. Helps out driversKeith Whitwell2001-01-081-1/+3
| | | | | | | | | | 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.
* Remove 'pv' parameter from Line/Tri/Point funcs. The provoking vertexKeith Whitwell2001-01-051-11/+16
| | | | | | | | | | | | | | is always the last vertex parameter. Modify clipping to preserve pv colors. Modify swrast and X11 driver to expect the pv in the last vertex (was looking in the first vertex previously). Remove all handling of flatshading from swrast_setup. Allow drivers to override the unclipped render tabs in tnl_render_stage directly. (Like in 3.4). Removed fxsimplerender stage. Modified t_vb_rendertmp.h to remove the need for 'parity' arguments in RENDER_TRI macros.
* Major rework of tnl moduleKeith Whitwell2000-12-261-77/+55
| | | | | | | 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.
* Support for swappable t&l modules, including an example one in the FXKeith Whitwell2000-11-241-3/+122
| | | | driver (enable with FX_ALLOW_VTXFMT=t).
* Move the transform and lighting code to two new directoriesKeith Whitwell2000-11-161-42/+85
| | | | | | | | | | | | | | | 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.