aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_swtcl.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove stray defines of HAVE_RGBAIan Romanick2010-03-031-1/+0
| | | | | | | Now that color-index support is removed from t_dd_tritmp.h and t_dd_unfilled.h, drivers no longer need define HAVE_RGBA. Signed-off-by: Ian Romanick <[email protected]>
* mesa: Remove _mesa_exit wrapper for exit().Eric Anholt2009-12-221-1/+1
| | | | | It does nothing else while being less useful than exit() because it lacks attributes that real exit() has.
* radeon/r200/r300/r600: make bo mapping be explicitDave Airlie2009-11-241-4/+4
| | | | | | | | | | This moves the bo mapping outside the DMA layer and makes it explicit, this should in theory make it simpler to split the clean up the dma/cmdbuf linkage that I created before that is broken. Tested on: r600, rv380 (tcl/no-tcl), rv200 (tcl/no-tcl) Signed-off-by: Dave Airlie <[email protected]>
* tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.Eric Anholt2009-11-191-2/+2
|
* tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]Eric Anholt2009-11-191-3/+3
|
* r300: Convert to shared debug code.Pauli Nieminen2009-08-311-17/+17
|
* r300: Swtcl prediction was still missing scissors.Pauli Nieminen2009-08-291-2/+3
| | | | All that state stuff should really be in state atoms :/
* r300: Add missing pre_emit_count to swtcl state size prediction.Pauli Nieminen2009-08-291-3/+4
|
* radeon: Fix swtcl emit pediction.Pauli Nieminen2009-08-291-28/+35
| | | | | | Problem was to find the correct place to run prediction. Only place that is called for every primitive is ALLOC_VERTS so we have to do prediction there before allocation.
* radeon/r200/r300: Fix swtcl prediction to work after primitie change.Pauli Nieminen2009-08-271-16/+31
| | | | | Swtcl calls flush everytime primitive changes so prediction has to made again after flushing.
* radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.Pauli Nieminen2009-08-271-3/+34
| | | | | We were check command buffer sizes too alte so allocated dma regions were freed before relocations so space checking failed.
* radeon: Optimize memory handling for dma operations.Pauli Nieminen2009-08-181-1/+2
| | | | | | | | | | We keep dma buffer objects in list untill they have been unused for many draw operations. Current limit of having 100 flushes is just guess for good performance/memory trade off. Moving WARN_ONCE macro to common context because it is used in multiple drivers. Signed-off-by: Pauli Nieminen <[email protected]>
* r300/fragprog: Move wpos_attr and fog_attr where they belongNicolai Hähnle2009-07-271-4/+4
| | | | Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Remove some dependencies on additional fragment program copiesNicolai Hähnle2009-07-271-1/+1
| | | | | | | The copy is still needed because some program transforms add state variables or constants. Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: Detangle fragment program compiler from driver-specific structureNicolai Hähnle2009-07-271-4/+4
| | | | | | | | This is in preparation of sharing the fragment program compiler with Gallium: Compiler code is moved into its own directory and modified so that it no longer depends on driver structures. Signed-off-by: Nicolai Hähnle <[email protected]>
* r300: fix WPOS for SWTCLMaciej Cencora2009-07-131-14/+16
|
* r300: rewrite FOGC and HPOS attribs handlingMaciej Cencora2009-07-131-22/+16
| | | | Rewrite vertex and fragment programs so that we don't have to do any hacks on lower level.
* r300: cache translated fragment programsMaciej Cencora2009-07-131-1/+1
|
* r300: fix for SW TCL pathMaciej Cencora2009-06-111-1/+1
| | | | | We shouldn't use i variable for SWTCL_OVM_TEX because textures doesn't have to be enabled in "packed" order. We could have tex1,tex3 and fog which would receive 7,9,8 OVM locations instead of 6,7,8.
* r300: don't send unused attributes for SW TCL pathMaciej Cencora2009-06-111-14/+14
|
* r300: fix regression caused by 056bc77547c304021a0faf204897ed238a5cf424Maciej Cencora2009-06-081-0/+1
| | | | Fixes GPU hangs in software TCL path
* r300: prepare for some code duplication removalMaciej Cencora2009-06-071-5/+14
|
* r300: prepare for different vertex data type supportMaciej Cencora2009-06-071-104/+29
|
* r300: when using cs path emit scissor in the cmdbufferJerome Glisse2009-05-281-0/+1
|
* r300: software fallbacking handling rewriteMaciej Cencora2009-05-161-6/+4
| | | | | Until now falling back to software rasterizer worked only for TCL enabled cards. For non TCL cards we used to plug our rendering functions in r300InitSwtcl, and we had never restored original functions for software rasterizer.
* r300: do front/back color selection in HW for software TCL pathMaciej Cencora2009-04-271-17/+27
|
* r300: always route 4 texcoord components to RSMaciej Cencora2009-04-271-11/+8
| | | | | | Routing <4 components may lead to lock up. Thanks to Alex Deucher for suggestion.
* r300: handle texcoords properlyMaciej Cencora2009-04-271-2/+6
| | | | add 1D texture case and setup default Q value to 1.0
* r300: merge r300/r500 fragment program compiler structureMaciej Cencora2009-04-191-0/+1
|
* r300: general cleanupMaciej Cencora2009-04-191-1/+1
| | | | | | - remove unused fields - remove unused defines and macros - flatten one structure
* r300: we always want non NDC coords format for swtclMaciej Cencora2009-04-171-22/+3
|
* r300: reorder fog coordinate and WPOS fp attributesMaciej Cencora2009-04-091-46/+18
| | | | | | | | HW TCL path currently assumed fog, WPOS order. The order was inverted for SW TCL path. This hopefully fixes rest of fog and WPOS related bugs. Additionally fix some indentation, don't route unnecessary components of fog coordinates for performance reasons and simplify vertex attribute emitting for SW TCL path.
* r300: fix regression from swtcl rewriteMaciej Cencora2009-04-091-7/+18
| | | | | | | Fix wrong attribute emit and revert to previous behaviour of calculating VAP_OUT_VTX_FMT_1 register value. We can't use r300VAPOutputCntl1 function because it assumes that all texture coords have 4 components and that is the case for HW TCL path, but not for SW TCL.
* Merge remote branch 'origin/master' into radeon-rewriteDave Airlie2009-04-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r200/r200_tex.c src/mesa/drivers/dri/r300/r300_cmdbuf.c src/mesa/drivers/dri/r300/r300_context.h src/mesa/drivers/dri/r300/r300_swtcl.c src/mesa/drivers/dri/r300/r300_tex.c src/mesa/drivers/dri/r300/r300_texmem.c src/mesa/drivers/dri/r300/r300_texstate.c src/mesa/drivers/dri/radeon/radeon_tex.c
| * r300: cleanup swtcl a littleMaciej Cencora2009-03-251-9/+1
| | | | | | | | | | | | - remove disabled code - silence compiler warnings (uinitialized values) - remove unneeded code
* | r300: swtcl rewrite and cleanupMaciej Cencora2009-04-071-221/+224
| | | | | | | | | | | | | | | | - remove unused variables - silence compiler warnings - fix twosided lighting - fix point attenuation - unify indentation
* | Merge remote branch 'main/master' into radeon-rewriteDave Airlie2009-03-201-6/+69
|\| | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r300/r300_cmdbuf.c src/mesa/drivers/dri/r300/r300_state.c src/mesa/drivers/dri/r300/r300_swtcl.c src/mesa/drivers/dri/r300/radeon_ioctl.c src/mesa/drivers/dri/radeon/radeon_screen.c
| * r300: route fog coord and W pos correctlyMaciej Cencora2009-03-061-37/+96
| | | | | | | | | | | | Also cleanup sw tcl vertex buffer setup Signed-off-by: Nicolai Haehnle <[email protected]>
| * r300: don't crash on sw tcl hw if point size vertex attrib is sentMaciej Cencora2009-03-061-2/+2
| |
* | r300: fix swtcl codepathsDave Airlie2009-03-061-6/+18
| |
* | r300: make r300 work with latest changesDave Airlie2009-02-121-1/+2
| |
* | radeon/r200/r300: another big merge upheavel.Dave Airlie2009-02-121-1/+1
| | | | | | | | | | | | | | | | 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: rename validate textures to validate buffersDave Airlie2009-02-021-1/+1
| |
* | r200/r300: swtcl fixups to use old dma buffers on top of BOsDave Airlie2009-01-311-107/+50
| |
* | r200/r300: add aperture space checksDave Airlie2009-01-311-0/+2
| |
* | WIP comitDave Airlie2009-01-291-1/+1
| |
* | radeon/r200/r300: bring back old style DMA buffer on top of BOs.Dave Airlie2009-01-291-28/+61
| | | | | | | | | | | | 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-7/+7
| |
* | r300: move some more function to genericDave Airlie2009-01-151-2/+2
| |
* | r300: start moving new r300 cmdbuf into common codeDave Airlie2009-01-141-3/+3
| |