aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_texstate.c
Commit message (Collapse)AuthorAgeFilesLines
* add complete support for ATI_fragment_shader for the r200. Most of the new ↵Roland Scheidegger2005-09-121-35/+80
| | | | code is in the new file r200_fragshader.c. Reverse engeneered by Dave Airlie and me
* enable GL_ARB_texture_env_crossbar on r200, separate the enable bits for ↵Roland Scheidegger2005-08-311-69/+341
| | | | texture sampling and texture environment, optimize away texture sampling for units if the result is not used, always emit the env instructions in-order and try to eliminate GL_REPLACE env instructions.
* Bugzilla #2708: Disable the fallback on GL_SPHERE_MAP. It appears to hurt moreEric Anholt2005-05-311-2/+1
| | | | than it helps, and we seem to have a handle on how to fix it.
* add texture micro and macro tiling to radeon/r200 driver. This can improve ↵Roland Scheidegger2005-02-101-20/+53
| | | | performance up to 15% in texture-intensive applications. Convert the driver to use the correct blit format and blit width instead of fixed blit format and blit width when uploading textures to make it work.
* Fix compile errors when DEBUG is defined.Ian Romanick2004-10-181-2/+2
|
* Add code to support projective texturing and fix mixed enabling of textureEric Anholt2004-10-161-104/+135
| | | | | | | | | | | | | | | coordinate generation. Original code by Roland Schiedegger, with changes by myself. While here, ensure that the swtcl path does tnl_install_attrs enough when fog/specular are being (en/dis)abled. Notable effects: - projtex test works with TCL and is closer with swtcl (Bugzilla #1461) - 8/9 squares work in texgenmix instead of 3. - texcyl "reflect" mode works (GL_SPHERE_MAP is now a fallback -- unclear if the hardware can actually support it). - flickering in doom3 replaced by just plain darkness. - blocktube fixed (Bugzilla #984) - fixes stex3d
* Always turn on the TAM_DEBUG3=0x6 workaround on real r200s. It appears thatEric Anholt2004-10-161-2/+8
| | | | | | | the current cases for turning it on were insufficient (Bugzilla #1519, 729, 814) and it has no significant performance impact. Performance tested with quake3 in GL_LINEAR mode both with and without anisotropy, with the workaround always on or always off.
* This statechange is vtx state, not tcl.Eric Anholt2004-10-091-1/+1
|
* Add Roland Scheidegger's S3TC patch. This patch does not implement theEric Anholt2004-10-071-2/+29
| | | | | | | | | | | | | | | | | (patented) S3TC/DXTC algorithms, but adds an option to dlopen a library module providing functions to do so. Because it uses dlopen, it is only enabled if USE_EXTERNAL_DXTN_LIB=1 is defined (which is only in linux-dri config, so far). It adds support for S3TC to several DRI drivers, and adds a DRI config option to force enabling S3TC even if the software compression/decompression is unavailable. This may allow people to use apps that require S3TC even though they don't have a license to implement the patented material themselves, if those apps use precompressed textures. Ideally we would get permission from the current holder of the patents to implement the algorithm in Mesa, at which point the dlopen mess could go away. Until then, this allows some to run applications they couldn't otherwise, and hopefully will provide us with more push to get the final step of getting that permission done.
* -O -Wall warnings cleanups in r200.Eric Anholt2004-09-241-1/+0
|
* Big-endian texture fixes from Michel Dänzer.Brian Paul2004-06-191-0/+10
|
* use I8 internal format for GL_INTENSITY, GL_ALPHA and GL_LUMINANCE texture ↵Roland Scheidegger2004-06-171-13/+12
| | | | formats. Fix various small bugs with tex env combine mode GL_DOT3_RGB(A)/GL_DOT3_RGB(A)_EXT
* fix minor signedness issue in assertionRoland Scheidegger2004-06-031-2/+2
|
* add support for more than 2 texture units (max 6, default 4). use hang ↵Roland Scheidegger2004-06-021-73/+114
| | | | workarounds only for r200, not derivatives.
* Added support for the 3rd texture coordinate for cubemaps and 3DIan Romanick2004-05-051-0/+1
| | | | | | textures. progs/demos/cubemap and progs/demos/stex3d seem to work correctly at all tcl_mode settings. x86 / SSE codegen is currently disabled.
* Refactor "class" texture environments to be implemented in terms ofIan Romanick2004-02-061-699/+241
| | | | ARB_texture_env_combine state.
* Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a singleKeith Whitwell2004-01-271-12/+12
| | | | array, texObj->Image[face][level].
* Corrected a comment about how the DOT3 hardware works in the R200.Ian Romanick2004-01-221-4/+4
|
* Updates to tnl_dd_dmatmp.hKeith Whitwell2003-12-111-1/+1
| | | | | | | | | | | | | | - Allocate vertices explicitly, rather than trying to talk about dma buffers. - Clean up the various Flush() operations. - Don't allow fallbacks any longer. Provide a support function to detect them ahead o ftime Updates to tnl_dd_vbtmp.h - Get rid of power-of-two vertex strides. Pack all vertices tightly. - Get texunit 2,3 emit working coorrectly. Other stuff: - Get rid of lingering Ubyte color support. - Fix a few compiler warnings.
* Update DRI drivers to current DRI CVS and make them work.Jon Smirl2003-10-211-70/+26
|
* r200 driver, brought over by Jon SmirlKeith Whitwell2003-08-061-0/+1824