summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_dd.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: improved driver query interfaceKeith Whitwell2008-09-211-4/+4
| | | | Brought over from gallium-0.2 branch.
* mesa: prefix more #includes with "main/"Brian Paul2008-09-181-18/+18
|
* Fix potential glDrawPixels(GL_DEPTH_COMPONENT) crashes (bug 13915)Brian2008-02-161-99/+166
| | | | Also, general clean-up of the Xlib-optimized glDraw/CopyPixels code.
* Fix some issues with glDrawBuffer(GL_NONE), bug 14198Brian2008-01-221-7/+20
| | | | | Set _ColorDrawBuffers[0] = NULL if no renderbuffers enabled. Check that _ColorDrawBuffers[0] is non-null before dereferencing in a few places.
* Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian2008-01-061-3/+3
| | | | | | | | | | | These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
* don't apply ColorMask to main gcBrian2007-10-221-7/+6
|
* fix some renderbuffer/wrapper bugsBrian2007-05-021-6/+6
|
* Clean and update XMesa/XFree86 interface.George Sapountzis2007-03-301-4/+0
| | | | | | | | | | | | | | | | Drop XMesaSetVisualDisplay(), XMesaReset(), no longer used. Add XMesaCopyContext() and move the GlxSetRenderTables() call for XGL within XMesaForceCurrent(). This is to make xserver/GL/mesa/X/xf86glx.c unaware of Mesa internals. Also, clean some ifdef's to make it clear that USE_XSHM and XFree86Server are mutually exclusive. Lastly, - move gcstruct.h from glxheader.h up to xmesa_xf86.h since it calls *gc->ops - drop GL/glxtokens.h from xm_api|dd.c, GLX tokens come from glcore.h and are used irrelevant of XFree86.
* merge current trunk into vbo branchAlan Hourihane2006-11-021-9/+7
|
* switch several dri drivers overKeith Whitwell2006-10-301-0/+1
|
* switch over to vbo moduleKeith Whitwell2006-10-291-2/+0
|
* Don't use x/y/w/h params given to Clear().Brian Paul2006-10-181-158/+58
|
* Remove get_buffer_size()Brian Paul2006-10-171-10/+1
| | | | | Always check window size in XMesaMakeCurrent() in case glViewport is not called.
* Big re-org of buffer size management.Brian Paul2006-10-141-87/+13
| | | | | | | All buffer resizes now handled by xmesa_check_and_update_buffer_size() which uses the _mesa_resize_framebuffer() function. Moved all low-level XImage/Pixmap resizing into xm_buffers.c file. Also, update lots of comments for Doxygen.
* In xmesa_DrawPixels_8R8G8B() check if drawing into a window system buffer,Brian Paul2006-10-111-16/+17
| | | | not a user-created FBO.
* don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channelBrian Paul2006-09-101-1/+2
|
* assorted clean-ups, fixesBrian Paul2006-04-271-10/+18
|
* minor clean-upBrian Paul2006-04-261-3/+3
|
* a little code movement so we don't make invalid casts from gl_renderbuffers ↵Brian Paul2006-03-281-1/+6
| | | | to xmesa_renderbuffers
* need to check for _NEW_BUFFERS in xmesa_update_state()Brian Paul2006-02-241-8/+4
|
* New comments, clean-up of fields related to point/line/triangle validation.Brian Paul2006-01-261-4/+7
|
* only call xmesa_set_renderbuffer_funcs() when really necessaryBrian Paul2006-01-091-41/+47
|
* check XGetGeometry() return valueBrian Paul2006-01-091-1/+13
|
* Updates for GL_EXT_timer_query:Brian Paul2005-12-071-13/+8
| | | | | New GLint64EXT and GLuint64EXT types (use C99's long long types). New glGetQueryObject[u]i64vEXT() functions.
* fix GLX server resize/crash when resizing windowsBrian Paul2005-10-211-1/+0
|
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-8/+10
| | | | glReadPixels done, glDrawPixels mostly done.
* Added XMesaDrawable to xmesa_renderbuffer. Use it in a few places insteadBrian Paul2005-09-261-2/+2
| | | | of the XMesaPixmap field to avoid some X server-side issues with casting.
* Committing in .Jouk Jansen2005-09-081-0/+3
| | | | | | | | Define suseconds_t for OpenVMS Modified Files: Mesa/src/mesa/drivers/x11/xm_dd.c ----------------------------------------------------------------------
* some clean-up and re-org for renderbuffersBrian Paul2005-09-071-22/+31
|
* Prototype implementation of new GL_EXT_timer_query extension (not finalized ↵Brian Paul2005-09-021-3/+81
| | | | | | yet). Extends the query mechanism to query elapsed time while rendering.
* Remove NEW_RENDERBUFFER stuff.Brian Paul2005-07-011-8/+0
| | | | | Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
* Remove the xmesa_set_buffer() function. No longer needed since theBrian Paul2005-06-231-68/+0
| | | | | | | | span functions pass in a gl_renderbuffer to indicate which color buffer should be drawn into. Optimized line/triangle routines are smart enough to know which buffer to draw into as well. The swrast->SetBuffer() routine should eventually be removed from all drivers.
* remove bad assertion, added new ones in clear_pixmap()Brian Paul2005-05-061-2/+6
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-384/+361
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* comments and clean-upBrian Paul2005-04-181-25/+27
|
* Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().Brian Paul2004-11-271-0/+19
| | | | | | | | 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.
* Remove the redundant width, height fields in xmesa_buffer struct. Just useBrian Paul2004-11-271-37/+30
| | | | | the values in the contained GLframebuffer. Removed some other unneeded code.
* Use __GLXextFuncPtr type instead of void * for generic functions toBrian Paul2004-11-251-0/+2
| | | | | avoid gcc 3.4 compiler warnings. Remove the unused/obsolete GLX_render_texture stuff.
* GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpackingBrian Paul2004-11-101-2/+2
| | | | | | | and ignored for 1D and 2D images. Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function. This change gets propogated to some other routines. Also added new _mesa_image_address[123]d() convenience functions.
* Removed _swrast_clip_pixelrect(). Use _mesa_clip_drawpixels() instead.Brian Paul2004-11-091-3/+3
|
* Removed _swrast_validate_pbo_access().Brian Paul2004-10-311-8/+52
| | | | In x11 driver, map/unmap PBO as needed in DrawPixels functions.
* SWTC trick (disabled for now)Daniel Borca2004-10-121-0/+21
|
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-3/+3
|
* fix max buffer size test (Kyle Bateman, bug 912828)Brian Paul2004-04-091-8/+2
|
* Implemented support for software-based AUX color buffers.Brian Paul2004-03-211-4/+11
| | | | | | Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
* Implementation of GL_EXT_pixel_buffer_object extension.Brian Paul2004-03-131-0/+12
| | | | | Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
* a bunch of assorted clean-ups, etc to fix warnings, etcBrian Paul2004-03-041-2/+36
|
* Refactored several variables out of XMesaVisual in favor of identicalIan Romanick2004-02-191-2/+5
| | | | | fields in __GLcontextModes (the base type). Removed the need to keep the XMesaVisualInfo pointer when building inside the X-server.
* Before calling _mesa_create_context(), initialize a dd_function_table structBrian Paul2004-01-201-93/+32
| | | | | | | | | | 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.
* check swrast->NewState in Draw/CopyPixels functionsBrian Paul2003-12-121-0/+9
|