summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_state.c
AgeCommit message (Collapse)Author
2006-03-28fix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 ↵Roland Scheidegger
(reported by Jim Duchek). Fix some potential problems with strict-aliasing with r200 and radeon drivers in *UpdateViewportOffset, *PolygonOffset and *UpdateWindow functions (some compiler warnings about strict-aliasing remain in the codegen vertex code, and there may be more problems unnoticed by the compiler).
2006-02-28No need to call *_FIREVERTICES twice.Aapo Tahkola
2005-11-02First step of Radeon DRI unification:Eric Anholt
- Makes all three drivers use the same screen structure and setup code, with a few ifdefs for the separate compilation to deal with symbols not being available to all drivers and the fact that we have no mechanism for dealing with different config options for different chip families in the same driver. These issues should be dealt with later. - Introduces IS_R[123]00_CLASS(radeonScreenPtr) macro for code for taking different paths depending on the general class of chipset. - Adds many new R300-class PCI IDs, though not all those listed in radeon_driver.c.
2005-10-27Bug #4900: Fix the non-fogcoord fog test on r100 (and rv200) at tcl_mode=1 byEric Anholt
flipping the signs on two factors. While this contradicts the DDK, it matches what r200 does, and it fixes the test.
2005-10-17add GL_EXT_fog_coord support to radeon driver. No vtxfmt code (just uses ↵Roland Scheidegger
fallback) yet. May cause a tcl fallback if fog coord is used together with separate specular lighting. Fog factors are precomputed and then submitted instead of the raw coords (chip limitation, same as on r200).
2005-10-15enable cube maps on radeon (#2241 on bugzilla). No vtxfmt code yet (just ↵Roland Scheidegger
generates vfmt fallback). Code by Andreas Stenglein, some small adjustments by me.
2005-10-13enable 3rd texture unit on radeon (default still 2 enabled units). Disable ↵Roland Scheidegger
some multitexcoord codegen stuff noone understands to make it work. Replace most code testing explicitly for unit 0 and 1 with loops instead of adding test for unit 2, smaller/more readable code at the cost of maybe some slight performance hit. (Code provided by Andreas Stenglein, some adjustments by me.)
2005-10-08remove code dealing with drm versions older than 1.3. The driver requires ↵Roland Scheidegger
(and requests) 1.3 since quite some time already to work at all.
2005-10-05remove unneeded parameter from radeonUploadTexMatrix.Roland Scheidegger
2005-10-05Remove the tcl fallback for texture rectangle (by manipulating the texture ↵Roland Scheidegger
matrix) (tested with texrect). Enable texgen for r/q coordinates (tested with projtex). Fix projected texcoords when an app uses TexCoord3x and the texture matrix to save on vertex size (fixes ut2k3 shadow projectors in tcl mode). From texgenmix, all cases with all texgen or no texgen work, with the exception of texgen enabled for s/t only, this one works with hw tcl, but not with vtxfmt (suspect issues with vtxfmt), the mixed cases do not work (which is expected, and should be rare in practice), with the exception of the first one which hits a tcl fallback.
2005-09-26fix projective texturing for (swtcl) texture rectangles. Fix wrong argument ↵Roland Scheidegger
order for texgen/texmat matrix multiplication.
2005-09-14Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,Brian Paul
call driUpdateFramebufferSize() when we detect changes in window size/ position in radeonGetLock().
2005-09-13Replace ctx->Driver.StencilOp/Func/Mask() functions withBrian Paul
ctx->Driver.Stencil*Separate() functions.
2005-09-04Simplify radeonSetCliprects(). Remove the 'mode' parameter.Brian Paul
2005-09-01Finish up some of the gl_renderbuffer work.Brian Paul
Use driRenderbuffer's offset, pitch fields in the span routines. Remove the SetBuffer driver function. Consolidate the code for setting CTX_RB3D_COLOROFFSET and CTX_RB3D_COLORPITCH state in new radeonUpdateDrawBuffer() function.
2005-08-31remove redundant ctx->Driver fallback assignments that were already done in ↵Brian Paul
_mesa_init_driver_functions()
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-02-16s/0/NULL/ (Jeff Muizelaar)Brian Paul
2005-02-08SUBPIXEL fixes from DieterKeith Whitwell
2005-01-26(Stephane Marchesin, me) Add support for color (framebuffer) tiling to the ↵Roland Scheidegger
radeon and r200 driver
2004-12-14uint*t -> u_int*t changesAlan Hourihane
2004-12-03enable GL_EXT_stencil_wrap (patch from idr), including some hacks for ↵Roland Scheidegger
original radeons which have some broken stencil ops.
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-02added support for GL_ARB_draw_buffersBrian Paul
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-18Convert int(8|32)_t to uint(8|32)_t, like should have been done the first time.Ian Romanick
2004-03-17Convert all uses of CARD32 and CARD8 to int32_t and int8_t.Ian Romanick
2004-03-11Adjustments to make everything use IOCTL/sarea defines in DRM insteadJon Smirl
of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
2004-02-10change lighting to use MULT instead of PREMULT (i.e. move some lighting ↵Roland Scheidegger
color calculations to the GPU)
2004-02-02Include context.h in radeon_state.c.Felix Kuehling
2004-01-28Fixed a cut-and-paste bug from the BlendFuncSeparate driver interfaceIan Romanick
change.
2004-01-28Use NEED_SECONDARY_COLOR() for checking specular state at all timesKeith Whitwell
when ctx->_TriangleCaps might be inaccurate (ie while ctx->NewState might be non-zero).
2004-01-27Added support for EXT_blend_equation_separate / ATI_blend_equation_separate.Ian Romanick
The internal driver interface was also changed to use BlendEquationSeparate instead of BlendEquation.
2004-01-24Fix hardware ROP state handling (Roland Scheidegger)Michel Dänzer
2004-01-23Call UpdateMaterial() unconditionally on GL_COLOR_MATERIAL state changeMichel Dänzer
(Roland Scheidegger), and update lighting state unconditionally there. Fixes lighting oddities in the xscreensaver endgame hack, bzflag and possibly elsewhere.
2004-01-23Fix attenuation hardware state handling, inspired by the R200 DDK referenceMichel Dänzer
driver (our r200 driver basically didn't do this at all, maybe got lost along the way?)
2004-01-21Remove dd_function_table::BlendFunc. All drivers now useIan Romanick
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.
2003-12-28Fix TCL_LIGHT_MODEL_CTL setting in radeonColorMaterial.Felix Kuehling
2003-12-09No need to call radeonUpdateMaterial() from RunPipeline().Keith Whitwell
2003-12-07merge some more of the radeon DRI driver from the DRI trunkAlan Hourihane
2003-11-24Import vtx-0-2-branchKeith Whitwell
2003-08-22patch to import Jon Smirl's work from BitkeeperBrian Paul