summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/savage/savagestate.c
AgeCommit message (Collapse)Author
2011-03-11mesa: replace NEED_SECONDARY_COLOR(), RGBA_LOGICOP_ENABLED() with inlinesBrian Paul
and rename them.
2011-01-15mesa: begin implementation of GL_ARB_draw_buffers_blendBrian Paul
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2009-03-02mesa: use Stencil._Enabled field instead of Stencil.EnabledBrian Paul
2008-09-21mesa: standardize on C99's uint*_t instead of u_int*_tKeith Whitwell
2008-09-18mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul
Makefile.template
2008-06-21replace __inline and __inline__ with INLINE macroBrian Paul
2008-01-06Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian
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.
2007-01-16Merge branch 'master' of git+ssh://keithw@git.freedesktop.org/git/mesa/mesa ↵Keith Whitwell
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
2006-11-10Refactor savageXMesaSet{Back,Front}ClipRects.Ian Romanick
Refactor savageXMesaSetBackClipRects and savageXMesaSetFrontClipRects into a single new routine called savageXMesaSetClipRects. This allows a few cleanups in the code.
2006-10-31switch remaining drivers over to vboKeith Whitwell
2006-10-15Remove a bunch of "ctx->Driver.function = _swrast_Function" lines sinceBrian Paul
default/fallback functions are already plugged in by the call to _mesa_init_driver_functions().
2006-05-08updates to dri drivers for recent stencil changesKeith Whitwell
2005-12-06Add support for GL_EXT_secondary_color. It looks like usingEric Anholt
NEED_SECONDARY_COLOR to turn it off/on was what we wanted -- now results look correct using seccolor on Savage IX and Savage4.
2005-09-14Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,Brian Paul
call driUpdateFramebufferSize() when window size/position changes.
2005-09-13Replace ctx->Driver.StencilOp/Func/Mask() functions withBrian Paul
ctx->Driver.Stencil*Separate() functions.
2005-09-03SetBuffer, renderbuffer changesBrian Paul
2005-08-13Enable support for EXT_stencil_wrap. The code was already there, but theIan Romanick
extension wasn't enabled. I have verified its correct function with Mesa's stencil_wrap test. It is enabled on both Savage4 and Savage3D. Since Savage3D uses a software fallback for *all* stencil operations, this is safe.
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2005-05-01Fixed and cleaned up programming of watermark registers. There may beFelix Kuehling
a marginal speedup, but I'm not sure this has the same effect on all hardware. Tested on Savage IX and ProSavageDDR. For experimenting with different values see the macros at the start of savagestate.c.
2005-04-24Software fallback for glColorMask. Can be avoided on Savage4 when allFelix Kuehling
channels are masked (disable draw update). Bumped driver date to reflect recent correctness fixes. The driver now passes all glean tests except exactRGBA on both Savage4 and Savage3D-based cards.
2005-04-23Texturing fixes for Savage3D/MX/IX:Felix Kuehling
- force emitting texAddr when the texture image changed (flush caches) - set transparent texture color key to something improbable (couldn't find a way to disable it completely) - fixed texture environment modes GL_DECAL and GL_REPLACE - made texture environment mode GL_BLEND a software fallback - added two custom texture formats for promoting from GL_ALPHA to ARGB8888 and 4444. Since the hardware can't be made to ignore the RGB color components, set them to 1 instead of 0. This gives the correct results - disabled GL_EXT_texture_env_add on Savage3D/MX/IX - map both GL_CLAMP and GL_CLAMP_TO_EDGE to hardware mode "wrap". It doesn't match either mode exactly by the spec, so we should either fall back on both or none. I chose the latter. - fall back to software when s and t wrapping modes differ (hardware has only one bit for both)
2005-04-21Fixed some suspicious pointer casts that caused lots ofFelix Kuehling
compile-time-warnings on x86-64. Not tested on x86-64 yet, but a good thing in general, so I'm giving up waiting for feedback. See also https://bugs.freedesktop.org/show_bug.cgi?id=2924.
2005-03-23Initialize texture addresses to something valid.Felix Kuehling
2005-03-09If the texture image changed force emitting the texture address, evenFelix Kuehling
if it didn't change. This seems to flush texture cashes. Fixes multi-textured lighting in quake2.
2005-02-12Fall back properly when GL_COLOR_LOGIC_OP is enabled and != GL_COPY.Felix Kuehling
Add missing per-primitive fallback for polygon stipple.
2005-02-05- Fixed scissor rectangle not moving with the window (Xorg bug #1731).Felix Kuehling
- Flush buffered primitives before changing scissors. - Require Savage DRM version 2.1.0, so that the broken single-cliprect code can finally rest in peace. - Removed some more dead code.
2005-01-23Fixed initialization of draw destination to front buffer on singleFelix Kuehling
buffered visuals. Also don't change span draw/read buffers in savageDDDrawBuffer. Now glean's polygon offset test works (and PASSes with fixed point depth buffer) with single buffered visuals without winding up in an infinite loop.
2005-01-16Added a fast path for emitting unclipped primitives directly to aFelix Kuehling
vertex buffer. ELTS are not supported yet (missing functionality in the DRM). You need at least Savage DRM version 2.1.3, which fixes a bug that screwed up triangle fans and strips. Moved the texture normalization stage to savagerender.c.
2005-01-08Added state debugging option (SAVAGE_DEBUG=state).Felix Kuehling
Fixed: Use savageEmitChangedRegs instead of savageEmitContiguousRegs for emitting Savage4.
2005-01-05* Fixed handling of scissorsFelix Kuehling
* Only set scissor regs directly if drmMinor < 1 * Don't set texaddr to 0 when a texture unit is disabled. That would trigger the tightened texture state check in the DRM if the texaddr and texdesc registers were not emitted atomically.
2005-01-03Added support for floating point depth buffers on Savage4-basedFelix Kuehling
hardware. By also reversing the depth range this can compensate the loss of accuracy of far objects caused by the projective transformation. Software fallbacks work but are slightly slower since floats in a custom (non IEEE) format have to be encoded and decoded. I havn't done anything about polygon offsets yet. There doesn't seem to be an easy way do get it right except making the offset unit as big as the lowest resolution of depth values. For now float depth is disabled by default but can be enabled through driconf (though I have seen only positive effects so far).
2005-01-01Removed all direct hardware access (MMIO, BCI) from the Savage DRIFelix Kuehling
driver. It uses the new DRM version 2.0.x now, which has just been committed to DRM CVS.
2004-12-15Added configuration support to the Savage driver. Three options areFelix Kuehling
supported so far.
2004-12-15Fixed initialization of some stencil-related S4 registers, which wasFelix Kuehling
misplaced in savageDDInitState_s3d, where was overwriting completely unrelated S3D registers with garbage.
2004-12-14uint*t -> u_int*tAlan Hourihane
2004-11-27Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().Brian Paul
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.
2004-10-08Apply Eric's stencil wrap patch (Eric Anholt)Alex Deucher
2004-10-02added support for GL_ARB_draw_buffersBrian Paul
2004-05-03get rid of last few XF86DRIClipRectDave Airlie
2004-03-27Forgot to set SAVAGE_NEW_CULL in savageDDEnable_s3d.Felix Kuehling
2004-03-26Enable drawing directly to the (now tiled) front buffer.Felix Kuehling
2004-03-25Recalculate the viewport matrix in savageEmitDrawingRectangle.Felix Kuehling
2004-03-25More state management changes:Felix Kuehling
- Don't lock in savageDDUpdateStatte, don't call savageEmitHwStateLocked - Need to grab the lock for texture uploads now - New SAVAGE_NEW_CULL bit in new_state to make sure that culling state and raster_primitive are not examined at the wrong times.
2004-03-24Make sure hardware culling is disabled for unfilled primitives,Felix Kuehling
points and lines.
2004-03-24Buffer vertices and emit them in batches. Still using conventional drawingFelix Kuehling
commands, no vertex DMA.
2004-03-21Implemented support for software-based AUX color buffers.Brian Paul
Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
2004-03-21Removed some useless definitions, artifacts from the Utah-GLX i810 driver.Felix Kuehling
2004-03-21unsigned int -> uint32_t, unsigned char -> uint8_t where the size matters.Felix Kuehling
A bit more cosmetics. Improved state emit on Savage 3D/IX/MX.
2004-03-20Cleaned up and fixed stencil fallback.Felix Kuehling