summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
Commit message (Collapse)AuthorAgeFilesLines
* r300: Also update window state when it's already bound but its stamp changed.Michel Dänzer2007-03-091-4/+4
| | | | | | | And set new cliprects before deriving other state from them. This ensures cliprects aren't accessed after having been freed. Thanks to Panagiotis Papadakos for testing various iterations of this.
* r300: Call radeonSetCliprects from radeonMakeCurrent.Michel Dänzer2007-03-063-1/+5
| | | | | | | | | | Based on a patch by Panagiotis Papadakos. Among other things, this makes sure the framebuffer object associated with the drawable has the correct size when _mesa_make_current is called, so the default viewport is set up correctly. Also update radeon->lastStamp in radeonSetCliprects.
* r300: Use register name & add a register about shading.Christoph Bill2007-03-012-9/+13
|
* r300: Use reg definition when available & add missing reg definition.Christoph Bill2007-03-013-3/+9
|
* Add early register descritpion.Christoph Bill2007-03-012-7/+11
| | | | | | This need more work on case where we can disable or enable early (stencil, alpha might need it to be disable).
* Optimize cos&sin instruction a bit more.Rune Petersen2007-03-011-168/+146
|
* r300: get rid of CB_DPATH legacyDave Airlie2007-02-223-188/+0
|
* Fix parallel make in r300 driver.Adam Jackson2007-02-201-2/+4
|
* r300: Fix cos & add scs to fragment program.Rune Peterson2007-02-142-88/+184
| | | | | | | | | | So this do : - Fixes COS. - Does range reductions for SIN & COS. - Adds SCS. - removes the optimized version of SIN & COS. - tweaked weight (should help on precision). - fixed a copy paste typo in emit_arith().
* r300: Add proper support for sin/cos instruction in fragment programRune Peterson2007-02-125-120/+165
| | | | | | | | | | | 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[].
* fix issues in vp when using FRAG_BIT_WPOS in a fragment program (bug #9910)Roland Scheidegger2007-02-091-20/+15
| | | | | | Redirect all VERT_RESULT_HPOS writes to a temp and use that for fixup. The viewport transformation still seems to take some shortcuts, and it still does not seem to work at all...
* Fall back to software rasterization if r300_translate_fragment_shader() fails.Michel Dänzer2007-02-032-1/+11
| | | | Aborting immediately is a bad idea with AIGLX.
* Remove unused r200 files from r300 driver directory.Michel Dänzer2007-02-034-2507/+0
|
* r300CreateContext: Really initialize r300->initialMaxAnisotropy.Michel Dänzer2007-02-031-0/+2
|
* Merge branch 'vbo-0.2'Keith Whitwell2007-02-026-229/+100
|\ | | | | | | | | | | | | Conflicts: src/mesa/main/texcompress_s3tc.c src/mesa/tnl/t_array_api.c
| * Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Keith Whitwell2007-01-1614-1844/+1065
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Move r300 to new fbo interface based on Keith Whithwell.Jerome Glisse2006-11-021-218/+86
| | | | | | | | | | | | Tested with progs/redbook/varray.
| * | merge current trunk into vbo branchAlan Hourihane2006-11-0211-92/+168
| | |
| * | disable vtxfmt_a code, switch over to vboKeith Whitwell2006-10-315-13/+14
| | |
* | | support as much of GL_EXT_stencil_two_side as we can. untested.Aapo Tahkola2007-01-183-8/+31
| |/ |/|
* | r300: Fix vertex program position invariant bug, force position reading.Jerome Glisse2007-01-141-2/+8
| | | | | | | | | | | | When we have a position invariant program we need to force routing the position otherwise you may handle transform quite random data which might be funny but unlikely what you want :).
* | Fix typo from commit 1d312ae0137eb39bf74fac91eb97ed25c289a4ca .Jerome Glisse2007-01-111-1/+1
| |
* | r300: Correct bug introduced by fragprog rework.Jerome Glisse2007-01-041-4/+5
| | | | | | | | Thx for Tilman who spoted the bugs.
* | Deleted unused file which likely have be reintroduced during git move.Jerome Glisse2006-12-261-1328/+0
| | | | | | | | | | This file was deleted longtime ago, guess that git migration created it again.
* | Rework r300 fragprog avoid using bitfield structure.Jerome Glisse2006-12-252-290/+466
| | | | | | | | | | | | | | | | It seems that bitfield structure lead to some strange problem on 64bits arch, don't want to waste time debugging strange things like that so converted pfs_reg_t structure to a GLuint and use good old masking and shifting spell. (cherry picked from 2a7de9d095d8e60da12b11aaa1efe664b87b11d3 commit)
* | Make git ignore files only generated at build time.Michel Dänzer2006-12-061-0/+3
| |
* | Disable fragment program debug messages.Rune Petersen2006-11-201-3/+1
| |
* | fragment.position supportRune Petersen2006-11-174-2/+236
| | | | | | | | | | World position is calculated in the vertex shader and passed to the fragment shader via an unused texcoord.
* | r300_select_vertex_shader4:Rune Petersen2006-11-175-167/+215
| | | | | | | | | | | | 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.
* | Remove unnecessary setting of GetBufferSize to NULL.Ian Romanick2006-11-091-1/+0
| |
* | Add sin instruction to fragment program.Jerome Glisse2006-11-051-2/+64
| | | | | | | | | | | | | | There is a bug somewhere in fragment program. tri-cos and tri-sin show the bug. Also we should not emit multiple time the same constant. for sin,cos,lit have to fix that.
* | Add cos instruction and remove left over debug.Jerome Glisse2006-11-042-45/+64
| |
* | Add requested size to r300RefillCurrentDmaRegion.Jerome Glisse2006-11-024-11/+14
| | | | | | | | | | | | This way we no longuer have the fixed RADEON_BUFFER_SIZE. Anyway function calling AllocDmaRegion should check if this succeed and fail gracefuly if not (see bug 8348).
* | Use RGBA_LOGICOP_ENABLED() instead of ctx->Color._LogicOpEnabled since we oftenBrian Paul2006-11-021-1/+1
| | | | | | | | | | need to check for this condition before the later field has been computed. Fixes logicop bug #8860.
* | Remove x/y/width/height parameters from Clear functions.Brian Paul2006-11-011-3/+2
| |
* | remove unused varsBrian Paul2006-11-012-2/+0
| |
* | Remove deprecated GetBufferSize interface.Jerome Glisse2006-11-015-72/+76
| |
* | Add LIT instruction to fragment program.Jerome Glisse2006-11-012-17/+88
| |
* | Add CMPH instruction to fragprogJerome Glisse2006-11-011-0/+2
|/ | | | | CMPH a0, a1, a2 -> if a2 > 0.5 return a1 else return a0 Guessed by examinating LIT instruction handling of FGLRX.
* Want to stop passing x/y/width/height to Clear() function.Brian Paul2006-10-181-5/+4
| | | | | | | The coordinates need to be computed after we've got the hw lock. Code updated to: 1. Ignore all/x/y/width/height/ params passed to Clear func. 2. Pass 0,0,0,0,0 to _swrast_Clear() until they're totally removed.
* Use endianness test function provided by mesa.Jerome Glisse2006-10-152-9/+6
| | | | | | | 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.
* Remove Driver.ResizeBuffers = _mesa_resize_framebuffer lines.Brian Paul2006-10-151-1/+0
| | | | | This is already done by the preceeding call to _mesa_init_driver_functions() which plugs in default functions like that.
* Make driDrawableInitVBlank() initialize the sequence number.Michel Dänzer2006-09-281-1/+2
| | | | | This prevents the first wait for vertical blank from timing out when the X server has been running for a long time.
* Remove r200 dependencyJerome Glisse2006-09-263-64/+2
| | | | | | Remove r200 dependency from the code as r200 merged driver never worked (right ?) and we want to clean the code.
* Remove r200 dependency.Jerome Glisse2006-09-261-15/+1
| | | | Remove r200*.h files dependency.
* try to use a 8888 texture format which will result in only a memcopy in ↵Roland Scheidegger2006-09-202-14/+96
| | | | mesa's texstore functions whenever possible for r200 and r300. r200 can use hw formats argb8888, rgba8888 and abgr8888 (or the opposite on big endian), r300 can use argb8888, bgra8888, rgba8888 and abgr8888 regardless of endian, as it supports free component swizzling.
* Fallback if ColorLogicOp is enabled. Cleanup a bit the fallbackJerome Glisse2006-09-141-29/+53
| | | | function.
* Remove MESA_LITTLE_ENDIAN guard for code that seems to work fine on big endian.Michel Dänzer2006-09-141-2/+0
|
* Fix compilation warning.Jerome Glisse2006-09-121-9/+12
|
* Removing some of r200 dependency, cleaning up code a bit,Jerome Glisse2006-09-1211-191/+142
| | | | | | | 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).