aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_state.c
Commit message (Collapse)AuthorAgeFilesLines
* r100: fixup radeon so gears seems to workDave Airlie2009-02-061-22/+11
|
* r200: clear is working at least - not much elseDave Airlie2009-01-201-2/+2
|
* radeon/r200/r300: attempt to move lock to common codeDave Airlie2009-01-141-142/+14
|
* radeon/r200/r300: initial attempt to convert to common context codeDave Airlie2009-01-141-87/+87
|
* Remove CVS keywords.Keith Whitwell2008-09-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-picked from gallium-0.1 Conflicts: src/glu/sgi/libnurbs/interface/bezierEval.h src/glu/sgi/libnurbs/interface/bezierPatch.h src/glu/sgi/libnurbs/interface/bezierPatchMesh.h src/glu/sgi/libnurbs/internals/dataTransform.h src/glu/sgi/libnurbs/internals/displaymode.h src/glu/sgi/libnurbs/internals/sorter.h src/glu/sgi/libnurbs/nurbtess/definitions.h src/glu/sgi/libnurbs/nurbtess/directedLine.h src/glu/sgi/libnurbs/nurbtess/gridWrap.h src/glu/sgi/libnurbs/nurbtess/monoChain.h src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h src/glu/sgi/libnurbs/nurbtess/partitionX.h src/glu/sgi/libnurbs/nurbtess/partitionY.h src/glu/sgi/libnurbs/nurbtess/polyDBG.h src/glu/sgi/libnurbs/nurbtess/polyUtil.h src/glu/sgi/libnurbs/nurbtess/primitiveStream.h src/glu/sgi/libnurbs/nurbtess/quicksort.h src/glu/sgi/libnurbs/nurbtess/rectBlock.h src/glu/sgi/libnurbs/nurbtess/sampleComp.h src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h src/glu/sgi/libnurbs/nurbtess/sampledLine.h src/glu/sgi/libnurbs/nurbtess/searchTree.h src/glu/sgi/libnurbs/nurbtess/zlassert.h src/glu/sgi/libutil/error.c src/glu/sgi/libutil/glue.c src/glu/sgi/libutil/gluint.h src/glu/sgi/libutil/project.c src/glu/sgi/libutil/registry.c src/glx/x11/glxclient.h src/glx/x11/glxext.c src/mesa/drivers/dri/ffb/ffb_dd.h src/mesa/drivers/dri/ffb/ffb_points.h src/mesa/drivers/dri/gamma/gamma_context.h src/mesa/drivers/dri/gamma/gamma_macros.h src/mesa/drivers/dri/i810/i810context.h src/mesa/drivers/dri/r128/r128_dd.h src/mesa/drivers/dri/tdfx/tdfx_dd.h
* mesa: standardize on C99's uint*_t instead of u_int*_tKeith Whitwell2008-09-211-1/+1
|
* mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul2008-09-181-8/+8
| | | | Makefile.template
* Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian2008-01-061-12/+12
| | | | | | | 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.
* radeon: Adapt cliprect fixes from r300.Alan Swanson2007-03-121-0/+2
|
* merge current trunk into vbo branchAlan Hourihane2006-11-021-2/+3
|
* remove vtxfmt code, switch over to vboKeith Whitwell2006-10-311-4/+2
|
* Enable GLX_SGI_make_current_read for radeon.Ian Romanick2006-10-181-9/+26
| | | | | | | | | | | | | | Added code to track the drawable bound to the context for reading. In addition, when a drawable is initially bound (for reading or drawing) or when the size of the drawable changes, update the size of the framebuffer object that back the drawable (for software fallbacks). Deprecate the old GetBufferSize interface. Bump the driver date. These changes were tested with wincopy on both direct rendering and accelerated indirect rendering (AIGLX).
* don't use derived value _ColorLogicOpEnabled as it's not current by the time ↵Roland Scheidegger2006-09-131-3/+6
| | | | we call the blend/logic op functions. Fixes glean logicOp test on r200.
* remove code to deal with non-normalized texture coordinates for tex rect ↵Roland Scheidegger2006-09-101-29/+0
| | | | targets (swtcl tex coord translation stage, tcl tex matrix adaption) and use the chip's native handling of such coords instead (!!!). Seems noone noticed those bits in the se_coord_fmt reg, even though it works fairly similar to r200 (except it's set per-unit and always active, so only enable it for texture rectangles).
* updates to dri drivers for recent stencil changesKeith Whitwell2006-05-081-5/+5
|
* fix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 ↵Roland Scheidegger2006-03-281-22/+28
| | | | (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).
* No need to call *_FIREVERTICES twice.Aapo Tahkola2006-02-281-1/+0
|
* First step of Radeon DRI unification:Eric Anholt2005-11-021-1/+1
| | | | | | | | | | | | - 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.
* Bug #4900: Fix the non-fogcoord fog test on r100 (and rv200) at tcl_mode=1 byEric Anholt2005-10-271-2/+8
| | | | | flipping the signs on two factors. While this contradicts the DDK, it matches what r200 does, and it fixes the test.
* add GL_EXT_fog_coord support to radeon driver. No vtxfmt code (just uses ↵Roland Scheidegger2005-10-171-40/+37
| | | | 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).
* enable cube maps on radeon (#2241 on bugzilla). No vtxfmt code yet (just ↵Roland Scheidegger2005-10-151-1/+0
| | | | generates vfmt fallback). Code by Andreas Stenglein, some small adjustments by me.
* enable 3rd texture unit on radeon (default still 2 enabled units). Disable ↵Roland Scheidegger2005-10-131-13/+12
| | | | 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.)
* remove code dealing with drm versions older than 1.3. The driver requires ↵Roland Scheidegger2005-10-081-34/+16
| | | | (and requests) 1.3 since quite some time already to work at all.
* remove unneeded parameter from radeonUploadTexMatrix.Roland Scheidegger2005-10-051-2/+3
|
* Remove the tcl fallback for texture rectangle (by manipulating the texture ↵Roland Scheidegger2005-10-051-29/+138
| | | | 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.
* fix projective texturing for (swtcl) texture rectangles. Fix wrong argument ↵Roland Scheidegger2005-09-261-4/+4
| | | | order for texgen/texmat matrix multiplication.
* Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,Brian Paul2005-09-141-6/+1
| | | | | call driUpdateFramebufferSize() when we detect changes in window size/ position in radeonGetLock().
* Replace ctx->Driver.StencilOp/Func/Mask() functions withBrian Paul2005-09-131-8/+10
| | | | ctx->Driver.Stencil*Separate() functions.
* Simplify radeonSetCliprects(). Remove the 'mode' parameter.Brian Paul2005-09-041-16/+19
|
* Finish up some of the gl_renderbuffer work.Brian Paul2005-09-011-13/+51
| | | | | | | 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.
* remove redundant ctx->Driver fallback assignments that were already done in ↵Brian Paul2005-08-311-16/+2
| | | | _mesa_init_driver_functions()
* 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.
* s/0/NULL/ (Jeff Muizelaar)Brian Paul2005-02-161-1/+1
|
* SUBPIXEL fixes from DieterKeith Whitwell2005-02-081-2/+2
|
* (Stephane Marchesin, me) Add support for color (framebuffer) tiling to the ↵Roland Scheidegger2005-01-261-0/+3
| | | | radeon and r200 driver
* uint*t -> u_int*t changesAlan Hourihane2004-12-141-1/+1
|
* enable GL_EXT_stencil_wrap (patch from idr), including some hacks for ↵Roland Scheidegger2004-12-031-0/+46
| | | | original radeons which have some broken stencil ops.
* 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.
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-1/+1
|
* 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.
* Convert int(8|32)_t to uint(8|32)_t, like should have been done the first time.Ian Romanick2004-03-181-1/+1
|
* Convert all uses of CARD32 and CARD8 to int32_t and int8_t.Ian Romanick2004-03-171-1/+1
|
* Adjustments to make everything use IOCTL/sarea defines in DRM insteadJon Smirl2004-03-111-10/+10
| | | | of glx/mini. removes glx/mini/drm.h glx/mini/sarea.h
* change lighting to use MULT instead of PREMULT (i.e. move some lighting ↵Roland Scheidegger2004-02-101-35/+30
| | | | color calculations to the GPU)
* Include context.h in radeon_state.c.Felix Kuehling2004-02-021-0/+1
|
* Fixed a cut-and-paste bug from the BlendFuncSeparate driver interfaceIan Romanick2004-01-281-2/+2
| | | | change.
* 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-4/+9
| | | | | The internal driver interface was also changed to use BlendEquationSeparate instead of BlendEquation.
* Fix hardware ROP state handling (Roland Scheidegger)Michel Dänzer2004-01-241-3/+3
|
* Call UpdateMaterial() unconditionally on GL_COLOR_MATERIAL state changeMichel Dänzer2004-01-231-10/+7
| | | | | | (Roland Scheidegger), and update lighting state unconditionally there. Fixes lighting oddities in the xscreensaver endgame hack, bzflag and possibly elsewhere.