summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/mga/mgastate.c
Commit message (Collapse)AuthorAgeFilesLines
* dri: Remove all DRI1 driversIan Romanick2011-08-261-1198/+0
| | | | | | | | | | Acked-by: Kristian Høgsberg <[email protected]> Acked-by: Marek Olšák <[email protected]> Acked-by: Alan Coopersmith <[email protected]> Acked-by: Jakob Bornecrantz <[email protected]> Acked-by: Dave Airlie <[email protected]> Build-Tested-by: Jakob Bornecrantz <[email protected]> Tested-by: Eugeni Dodonov <[email protected]>
* mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul2011-03-111-4/+5
| | | | and rename them.
* mesa: begin implementation of GL_ARB_draw_buffers_blendBrian Paul2011-01-151-2/+2
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-34/+34
|
* mesa: Remove ClearIndex and IndexMask from device-driver interfaceIan Romanick2010-03-031-3/+0
| | | | | | | | These are used to inform the driver of the clear value for color-index buffers and to control write-masking of bits in color-index buffers. No driver use or need (not even Nouveau) these interfaces. Signed-off-by: Ian Romanick <[email protected]>
* Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg2010-01-041-3/+3
| | | | | | | | | As part of the DRI driver interface rewrite I merged __DRIscreenPrivate and __DRIscreen, and likewise for __DRIdrawablePrivate and __DRIcontextPrivate. I left typedefs in place though, to avoid renaming all the *Private use internal to the driver. That was probably a mistake, and it turns out a one-line find+sed combo can do the mass rename. Better late than never.
* mesa: implement per-buffer color maskingBrian Paul2009-12-291-6/+4
| | | | | | | | | | | This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
* mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul2008-09-181-4/+4
| | | | Makefile.template
* Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian2008-01-061-7/+9
| | | | | | | Each array element is now a BUFFER_x token rather than a BUFFER_BIT_x bitmask. The number of active color buffers is specified by _NumColorDrawBuffers. This builds on the previous DrawBuffer changes and will help with drivers implementing GL_ARB_draw_buffers.
* Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.Kristian Høgsberg2007-10-101-5/+0
| | | | | | | | | | | | All the DRI driver did was call the createDrawable callback immediately upon entry to DRIscreen::createNewDrawable to get the drm_drawable_t. We can just call that before calling into the DRI driver and pass the returned drm_drawable_t as an argument to the DRI entry point. Likewise for destroyDrawable. Also, DRIdrawablePrivate::draw isn't used anywhere, and since the driver no longer needs the XID of the drawable we can now drop that.
* Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Keith Whitwell2007-01-161-5/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
| * fix typo, silence warningsBrian Paul2006-11-021-2/+3
| |
| * Use RGBA_LOGICOP_ENABLED() instead of ctx->Color._LogicOpEnabled since we oftenBrian Paul2006-11-021-4/+5
| | | | | | | | | | need to check for this condition before the later field has been computed. Fixes logicop bug #8860.
| * Fix bug #8799.Ian Romanick2006-10-301-4/+7
| | | | | | | | | | | | Properly resize bith the drawable and the readable in mgaUpdateRects. Eliminate the use of the deprecated GetBufferSize interface. Bump driver date.
| * Refactor mgaXMesaSetFrontClipRects and mgaXMesaSetBackClipRects.Ian Romanick2006-10-301-33/+8
| | | | | | | | | | | | Combine mgaXMesaSetFrontClipRects and mgaXMesaSetBackClipRects into a single new function called mga_set_cliprects. This enables a small refactor in mgaDDDrawBuffer.
* | merge current trunk into vbo branchAlan Hourihane2006-11-021-37/+15
| |
* | switch remaining drivers over to vboKeith Whitwell2006-10-311-2/+2
|/
* Remove a bunch of "ctx->Driver.function = _swrast_Function" lines sinceBrian Paul2006-10-151-7/+0
| | | | | default/fallback functions are already plugged in by the call to _mesa_init_driver_functions().
* Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,Brian Paul2005-09-141-3/+0
| | | | call driUpdateFramebufferSize() when window size/position changes.
* Replace ctx->Driver.StencilOp/Func/Mask() functions withBrian Paul2005-09-131-8/+11
| | | | ctx->Driver.Stencil*Separate() functions.
* SetBuffer, renderbuffer changesBrian Paul2005-09-031-5/+0
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-3/+3
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().Brian Paul2004-11-271-0/+3
| | | | | | | | Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA() if necessary. Cleaned up code related to GLframebuffer width/height initialization. Set initial viewport/scissor params in _mesa_make_current2(), instead of in the drivers' MakeCurrent functions.
* Fixed off by one errors in clipping.Ville Syrjala2004-10-161-2/+2
|
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-1/+1
|
* Patch removes _SOLO definition needed for mesa-solo. mesa-soloJon Smirl2004-07-041-2/+1
| | | | | uses the NEW_INTERFACE now so _SOLO isn't necessary anymore. Tested with the hardware that I own.
* Implemented support for software-based AUX color buffers.Brian Paul2004-03-211-2/+2
| | | | | | Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
* Adjust mga drivers to remove redundant h file for sarea and IOCTLsJon Smirl2004-03-121-12/+12
|
* Adjustments to make everything use IOCTL/sarea defines in DRM insteadJon Smirl2004-03-111-2/+2
| | | | of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
* Use NEED_SECONDARY_COLOR() for checking specular state at all timesKeith Whitwell2004-01-281-1/+1
| | | | | when ctx->_TriangleCaps might be inaccurate (ie while ctx->NewState might be non-zero).
* Added support for EXT_blend_equation_separate / ATI_blend_equation_separate.Ian Romanick2004-01-271-2/+4
| | | | | The internal driver interface was also changed to use BlendEquationSeparate instead of BlendEquation.
* Remove dd_function_table::BlendFunc. All drivers now useIan Romanick2004-01-211-9/+3
| | | | | | 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.
* bring over latest mga DRI driver from DRI trunkAlan Hourihane2003-12-051-117/+79
|
* Update DRI drivers to current DRI CVS and make them work.Jon Smirl2003-10-211-44/+43
|
* patch to import Jon Smirl's work from BitkeeperBrian Paul2003-08-221-575/+722
|
* mga driver, brought over by Jon SmirlKeith Whitwell2003-08-061-0/+1131