summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_state.c
AgeCommit message (Collapse)Author
2007-05-09r300: Converted exit calls to _mesa_exit calls.Oliver McFadden
Note that the exit codes are inconsistent and should be fixed.
2007-05-09r300: Indented r300_state.[ch].Oliver McFadden
2007-05-09r300: Use an array for the vertex program sources and corrected an error fromOliver McFadden
4960af08ad50a3a6ea039145de2698234c2cc892.
2007-05-06r300: Added R300_AA_DISABLE for R300_GB_AA_CONFIG.Oliver McFadden
2007-05-06r300: Removed more deprecated state code that is now set in separate functions.Oliver McFadden
2007-05-06r300: R300_ZS_... is now set in separate functions; removed the deprecated code.Oliver McFadden
2007-05-06r300: Point size is now set in a separate function; removed the deprecated code.Oliver McFadden
2007-05-06r300: Use the defined values for R300_VAP_CNTL_STATUS.Oliver McFadden
2007-05-05don't use hw to perform vertex transform etc. when using swtcl. This for ↵Aapo Tahkola
compatibility with vertex programs and the fact that swtcl very rarely gets hit with tcl capable hw.
2007-04-27"Fix" for bug 9170. May need more attention.Brian
2007-04-14r300: if we don't have TCL don't setup state emissions for vertex shadersDave Airlie
2007-04-10rs480: set vap cntl to what fglrx uses for non-TCL cardsDave Airlie
2007-04-10r300: don't enable VAP/TCL on cards that don't support itDave Airlie
2007-03-26merge of glsl-compiler-1 branchBrian
2007-03-24r300: Fix texture coordinate calculation for rectangle texturesNicolai Haehnle
R300 hardware takes texcoords in the range 0..1 even for rectangle textures. Previously, the necessary texcoord conversion was applied to the texture coordinate during vertex processing in a render stage. This is obviously wrong when fragment programs are used, which can calculate arbitrary coordinates for TEX instructions. Therefore, we now inject an appropriate MUL instruction before a TEX that reference a rectangle texture.
2007-03-24r300: No assertion when accessing incomplete texture images.Nicolai Haehnle
There used to be an assertion when a fragment program accesses an incomplete texture image. Work around this assertion. Note: I am unsure whether this workaround produces the desired result (0,0,0,1) on all hardware.
2007-03-24r300: Fix: KIL instruction don't require texturesNicolai Haehnle
When no textures were enabled, a KIL instruction triggered an assertion in r300_setup_rs_unit.
2007-03-23r300: Whitespace cleanup (remove trailing spaces)Nicolai Haehnle
2007-03-21merge from masterBrian
2007-03-15Committed Rune Petersen's fragment.position patch (Bug #10024) plus a few smallOliver McFadden
corrections.
2007-03-11Guess another unknown register in R300 command buffer initialization. ↵Aapo Tahkola
(Oliver McFadden)
2007-03-11Renamed some of the unkXXX variables in the command buffer initOliver McFadden
ialization code. Note that there are still plenty of actual unknown variables left that should probably be deciphered. There are a number of things incomplete in the driver; the different polygon offset modes (line, point, etc), the other texture filter, texture chroma key, etc. These should probably be fixed in the future, or at least added to the TODO list.
2007-03-09Merge branch 'origin' into glsl-compiler-1Brian
Conflicts: src/mesa/main/context.c
2007-03-01Add early register descritpion.Christoph Bill
This need more work on case where we can disable or enable early (stencil, alpha might need it to be disable).
2007-02-23Update DRI drivers for new glsl compiler.Brian
Mostly: - update #includes - update STATE_* token code
2007-02-22r300: get rid of CB_DPATH legacyDave Airlie
2007-02-12r300: Add proper support for sin/cos instruction in fragment programRune Peterson
Getting proper SIN and COS wasn't as easy as it appeared. I had to make make some changes to the fragment program code. general FP changes: - support HHH swizzle for vector instructions. - don't copy a source to a temp when it is not XYZW swizzled, but combine the two and have the swizzle resolve any issues. (saves temps/instructions with more elaborate shader code) - fix overflow in cnstv[].
2007-02-03Fall back to software rasterization if r300_translate_fragment_shader() fails.Michel Dänzer
Aborting immediately is a bad idea with AIGLX.
2007-02-02Merge branch 'vbo-0.2'Keith Whitwell
Conflicts: src/mesa/main/texcompress_s3tc.c src/mesa/tnl/t_array_api.c
2007-01-18support as much of GL_EXT_stencil_two_side as we can. untested.Aapo Tahkola
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-17fragment.position supportRune Petersen
World position is calculated in the vertex shader and passed to the fragment shader via an unused texcoord.
2006-11-17r300_select_vertex_shader4:Rune Petersen
Makes the vertex program output from the fragment input. It makes the driver capable of catching output-input mismatches safely. Primarily based on some of Aapo Tahkola's code.
2006-11-02Use RGBA_LOGICOP_ENABLED() instead of ctx->Color._LogicOpEnabled since we oftenBrian Paul
need to check for this condition before the later field has been computed. Fixes logicop bug #8860.
2006-11-02merge current trunk into vbo branchAlan Hourihane
2006-11-01remove unused varsBrian Paul
2006-10-31disable vtxfmt_a code, switch over to vboKeith Whitwell
2006-10-15Use endianness test function provided by mesa.Jerome Glisse
Use the _mesa_little_endian helper function insted of the MESA_BIG_ENDIAN flag. There is still place using this flag but we need to find how to submit 16bits elements on big endian computer.
2006-09-12Removing some of r200 dependency, cleaning up code a bit,Jerome Glisse
and fixing a couple of warning. More cleanup and shuffle to come. I have tested this change they might broke things especialy with r300_texstate.c change (format_x doesn't seems to be use at all by r300).
2006-08-26fix #8008Aapo Tahkola
2006-08-22fix broken write-only depth setting. use early z where possible.Aapo Tahkola
2006-08-11support shorts as vertex dataAapo Tahkola
2006-07-31fix #6991Aapo Tahkola
2006-07-05R300_RR_ROUTE_1 still needs to be initialized.Aapo Tahkola
2006-06-30Vertex/fragment program patches (Rune Petersen)Brian Paul
2006-06-06prevent run_arb_vertex_program from running tnl programs unless ↵Aapo Tahkola
ctx->_MaintainTnlProgram is set
2006-05-08updates to dri drivers for recent stencil changesKeith Whitwell
2006-04-20limit max program/param length to 255 (spotted by sroland)Aapo Tahkola
2006-04-12GLboolean cannot hold GLuint! usage of tmus >= 4 no longer lock r300.Aapo Tahkola
2006-04-11add missing 'union' keywordBrian Paul