aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_render.c
Commit message (Collapse)AuthorAgeFilesLines
* r300: cleanup frag prog setup a littleMaciej Cencora2009-04-171-16/+16
| | | | | | | | | | | Use proper fields for marking if fp is translated, and if is translated succesfully. Now if fp gets translated (even unsuccesfully) fp->translated is true. If the translation failed (i.e. because we exceeded limit of maximum texture indirections) the fp->error is set. With a little updated fallback function it prevents non native fragment programs from beeing translated with every frame (the translation would fail anyway so there's no point to try again). Also implement IsProgramNative function for GL_FRAGMENT_PROGRAM_ARB (it should give some performance boost in apps that checks if program is native and falls back to simpler shader to meet hw limits if necessary) and cleanup indentation (remove whitespaces on empty lines).
* radeon/r200/r300: collapse context destruction down to a common path.Dave Airlie2009-04-021-49/+49
| | | | | Context destruction was nearly the same over all the drivers, so collapse it down.
* r300: check buffer sizes in non-tcl case + set correct VRAM limitsDave Airlie2009-03-261-0/+3
|
* radeon: refactor framebuffer code like intelDave Airlie2009-03-031-1/+2
| | | | | this is a step towards fbos and should fix pageflipping, but I think the first flip seems broken.
* Merge remote branch 'origin/master' into radeon-rewriteDave Airlie2009-02-131-8/+14
|\ | | | | | | | | | | | | Conflicts: configure.ac src/mesa/drivers/dri/r200/r200_context.c src/mesa/drivers/dri/r300/r300_render.c
| * Track two sets of back-face stencil stateIan Romanick2009-01-231-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | Track separate back-face stencil state for OpenGL 2.0 / GL_ATI_separate_stencil and GL_EXT_stencil_two_side. This allows all three to be enabled in a driver. One set of state is set via the 2.0 or ATI functions and is used when STENCIL_TEST_TWO_SIDE_EXT is disabled. The other is set by StencilFunc and StencilOp when the active stencil face is set to BACK. The GL_EXT_stencil_two_side spec has more details. http://opengl.org/registry/specs/EXT/stencil_two_side.txt
| * R300: missing semicolonAlex Deucher2008-12-291-1/+1
| |
| * r300: remove the unknowns from the indx_buffer codeDave Airlie2008-12-281-1/+2
| |
* | r200/r300: get up to speed on renamed filesDave Airlie2009-02-121-2/+1
| |
* | radeon/r200/r300: another big merge upheavel.Dave Airlie2009-02-121-2/+0
| | | | | | | | | | | | | | | | This merges lots of the hw state atom emission and firevertices code. it also removes a lot of the extra radeon crap from r300 and merge scissor
* | r300: fix some autostate batch setupsDave Airlie2009-02-061-2/+2
| |
* | r300: fix up CS for modesetting - gears under kms worksDave Airlie2009-02-041-7/+14
| |
* | r300: rename validate textures to validate buffersDave Airlie2009-02-021-1/+1
| |
* | r200/r300: add aperture space checksDave Airlie2009-01-311-0/+3
| |
* | radeon/r200/r300: bring back old style DMA buffer on top of BOs.Dave Airlie2009-01-291-4/+2
| | | | | | | | | | | | this gets back a lot of the lots speed in gears on r500 at least I also fixed the legacy bufmgr to deal when the dma space fills up
* | r200: clear is working at least - not much elseDave Airlie2009-01-201-3/+3
| |
* | r300: move some more function to genericDave Airlie2009-01-151-110/+110
| |
* | r300: start moving new r300 cmdbuf into common codeDave Airlie2009-01-141-5/+5
| |
* | radeon: remove start/end offset + cleanup some whitespaceDave Airlie2008-12-221-8/+0
| |
* | radeon: make DRI1 one work with new CS mechanismDave Airlie2008-12-011-2/+2
| |
* | r300: convert to new relocations format (see libdrm-radeon)Jerome Glisse2008-11-141-20/+40
| |
* | r300: cs + DRI2 supportJerome Glisse2008-11-141-1/+61
| | | | | | | | | | If DRI2 is enabled then switch cmd assembly to directly build hw packet.
* | r300: bo and cs abstraction.Jerome Glisse2008-11-141-56/+60
|/ | | | | | | | | | This abstract memory management and command stream building so we can use different backend either legacy one which use old pathway or a new one like with a new memory manager. This works was done by : Nicolai Haehnle Dave Airlie Jerome Glisse
* mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul2008-09-181-9/+9
| | | | Makefile.template
* r300: Implement hardware acceleration for ColorLogicOpNicolai Haehnle2008-07-271-2/+0
|
* r300: Always emit LOAD_VBPNTR immediately before index-based renderingNicolai Haehnle2008-07-261-1/+12
| | | | This fixes one type of lockup I've been seeing on my test system.
* mesa: fix issues around multisample enableRoland Scheidegger2008-07-021-1/+1
| | | | | multisample enable is enabled by default, however gl mandates multisample rendering rules only apply if there's also a multisampled buffer.
* r300: Do not include r300_fragprog.h from r300_context.h and other cleanupsNicolai Haehnle2008-06-141-0/+1
|
* Initial r5xx fragment program compiler support.Corbin Simpson2008-05-021-6/+19
| | | | Includes fallback shader and a handful of working opcodes.
* r300: oops wrong logic for swtclDave Airlie2007-07-011-1/+1
|
* r300: cleanup some of the swtcl codeDave Airlie2007-07-011-0/+5
|
* clean up cache flush emission into one placeDave Airlie2007-06-221-14/+2
| | | | makes gears work with swtcl
* fixup packet setup - still hangsDave Airlie2007-06-171-3/+3
|
* move clip to r300 emitDave Airlie2007-06-131-2/+1
|
* r300: i can't see why we fallback for polygon offset line/fillDave Airlie2007-06-101-2/+0
|
* r300: fix non-tcl rs4xx again.Dave Airlie2007-06-021-0/+2
|
* r300: Only support size 4 ELTs; this is what Mesa provides.Oliver McFadden2007-05-301-29/+9
|
* r300: Use the CP_PACKET3 macro for Type 3 packets.Oliver McFadden2007-05-301-4/+4
| | | | | | | | | I haven't converted all of the Type 3 packets to the CP_PACKET3 macro yet because some of the Type 3 packet defines are missing from the R300 register definition file. These defines need to be copied from DRM and Mesa into the R300 register definition file then copied into both DRM and Mesa.
* r300: Removed the (completely broken since new VBO branch) OPTIMIZE_ELTS path.Oliver McFadden2007-05-301-20/+0
| | | | | | | | | The VTXFMT code was broken by the new VBO branch and the OPTIMIZE_ELTS path relied on the VTXFMT code... I'm not even sure if the OPTIMIZE_ELTS path ever worked; the testing that I did after minimizing the code duplication would have taken the same path as the non-OPTIMIZE_ELTS code.
* r300: Cleaned up the AOS code in r300_render.c.Oliver McFadden2007-05-301-21/+14
|
* r300: Added TODO comment regarding immediate mode implementation.Oliver McFadden2007-05-201-0/+3
|
* r300: Removed the radeon_vertex_buffer structure.Tommy Schultz Lassen2007-05-171-61/+11
|
* r300: A few very minor indenting corrections.Oliver McFadden2007-05-131-2/+2
|
* r300: Use __FUNCTION__ not __func__.Oliver McFadden2007-05-111-1/+1
| | | | Just for consistency; most of the code already uses __FUNCTION__.
* r300: Assert if the primitive type is unknown; this can't really happen.Oliver McFadden2007-05-111-6/+2
|
* r300: Moved some code around in r300_render.c and general clean up.Oliver McFadden2007-05-111-42/+38
|
* r300: Removed some checking in r300NumVerts that is not needed.Oliver McFadden2007-05-111-15/+0
| | | | | | According to Aapo Tahkola the OpenGL specification defines the behaviour when there are not enough vertices for the primitive type, thus DRI drivers do not need to perform verification on the number of vertices per primitive.
* r300: Renamed r300_maos.c to r300_emit.c; it contains mostly emit code now.Oliver McFadden2007-05-111-1/+0
|
* r300: Moved some more emit code into r300_render.c.Oliver McFadden2007-05-101-2/+32
|
* r300: Moved some more of the emit code into r300_render.c.Oliver McFadden2007-05-101-3/+48
|