summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* r600g: cleanupJerome Glisse2010-09-2910-1075/+914
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: Update SConscript.Vinson Lee2010-09-291-7/+4
| | | | | | This is a follow-up to commit 9c284b5cae916a083d17d1039d2f2da128b47882. Fixes SCons build.
* r300g: add support for formats beginning with X, like X8R8G8B8Marek Olšák2010-09-292-12/+40
| | | | This is actually a format translator fix.
* r600g: delete old pathJerome Glisse2010-09-2922-4795/+70
| | | | | | Lot of clean can now happen. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: use a hash table instead of groupJerome Glisse2010-09-293-467/+441
| | | | | | | | Instead of creating group of register use a hash table to lookup into which block each register belongs. This simplify code a bit. Signed-off-by: Jerome Glisse <[email protected]
* llvmpipe: Decouple sampler view and sampler state updates.José Fonseca2010-09-293-13/+45
| | | | | | | | Fixes glean pbo crash. It would be possible to avoid crashing without decoupling, but given that state trackers give no guarantee that number of views is consistent, that would likely cause too many state updates (or miss some).
* Revert "r600g: add initial vertex translate support."Dave Airlie2010-09-294-239/+3
| | | | | | | This reverts commit 914b669b082258fc05d0fec047b69949d88585c4. I didn't mean to commit this yet, will redo in new state system once we clean it up.
* r600g: remove old assert from new codepathDave Airlie2010-09-291-2/+0
| | | | this fixes draw-elements-base-vertex
* r600g: add initial vertex translate support.Dave Airlie2010-09-294-3/+239
|
* r600g: add evergreen texture border support to new pathDave Airlie2010-09-291-1/+4
|
* r600g: add back evergreen name.Dave Airlie2010-09-291-1/+3
|
* r600g: Cleaned up index buffer reference handling in the draw module.Tilman Sauerbeck2010-09-283-4/+14
| | | | | | This fixes a buffer leak. Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: avoid rebuilding the vertex shader if no change to input formatJerome Glisse2010-09-282-6/+12
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: suspend/resume occlusion query around clear/copyJerome Glisse2010-09-282-0/+10
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix remaining piglit issue in new designJerome Glisse2010-09-282-8/+32
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: use ptr for blit depth uncompress functionJerome Glisse2010-09-284-1/+48
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* nv50: fix GP state bind and validateChristoph Bumiller2010-09-282-1/+5
|
* r600g: on evergreen the centroid isn't set in this register.Dave Airlie2010-09-282-2/+0
|
* r600g: fix db flush breaking config stateDave Airlie2010-09-281-9/+9
|
* r300g: fix swizzling of texture border colorMarek Olšák2010-09-281-34/+7
| | | | NOTE: This is a candidate for the 7.9 branch.
* r300g: add support for 3D NPOT textures without mipmappingMarek Olšák2010-09-285-25/+51
| | | | | | | | | | | | | | | | | | | | | | | The driver actually creates a 3D texture aligned to POT and does all the magic with texture coordinates in the fragment shader. It first emulates REPEAT and MIRRORED wrap modes in the fragment shader to get the coordinates into the range [0, 1]. (already done for 2D NPOT) Then it scales them to get the coordinates of the NPOT subtexture. NPOT textures are now less of a lie and we can at least display something meaningful even for the 3D ones. Supported wrap modes: - REPEAT - MIRRORED_REPEAT - CLAMP_TO_EDGE (NEAREST filtering only) - MIRROR_CLAMP_TO_EDGE (NEAREST filtering only) - The behavior of other CLAMP modes is undefined on borders, but they usually give results very close to CLAMP_TO_EDGE with mirroring working perfectly. This fixes: - piglit/fbo-3d - piglit/tex3d-npot
* r300g: code cleanupsMarek Olšák2010-09-281-30/+25
| | | | | | | | | Some random stuff I had here. 1) Fixed some misleading comments. 2) Removed fake_npot, since it's redundant. 3) lower_texture_rect -> scale_texcoords 4) Reordered and reindented some TEX transform code.
* softpipe: fix swizzling of texture border colorBrian Paul2010-09-273-3/+29
| | | | | We ask the texture tile cache to swizzle the color for us since that's where the view/swizzling info is available.
* softpipe: allocate tile data on demandBrian Paul2010-09-272-42/+113
| | | | | | | | | | | | | | | | Changes in v2: - Invalidate last_tile_addr on any change, fixing regressions - Correct coding style Currently softpipe ends up allocating more than 200 MB of memory for each context due to the tile caches. Even worse, this memory is all explicitly cleared, which means that the kernel must actually back it with physical RAM right away. This change allocates tile memory on demand. Signed-off-by: Brian Paul <[email protected]>
* r600g: fix routing btw vertex & pixel shaderJerome Glisse2010-09-273-2/+18
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix pointsprite & resource unbindingJerome Glisse2010-09-272-2/+4
| | | | | | | | | | When asking to bind NULL resource assume it's unbinding so free resource and unreference assoicated buffer. Also fix pointsprite parameter. Fix glsl-fs-pointcoord & fp-fragment-position Signed-off-by: Jerome Glisse <[email protected]>
* r600g: build packet header onceJerome Glisse2010-09-272-0/+18
| | | | | | | | Build packet header once and allow to add fake register support so we can handle things like indexed set of register (evergreen sampler border registers for instance. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix index buffer drawingJerome Glisse2010-09-272-3/+5
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().Tilman Sauerbeck2010-09-271-0/+3
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: add evergreen texture resource properly.Dave Airlie2010-09-272-8/+13
| | | | adding sampler border looks impossible with current design, another day, another corner case not worked out.
* r600g: Silence uninitialized variable warnings.Vinson Lee2010-09-261-0/+5
| | | | | | | Fixes these GCC warnings. r600_shader.c: In function 'tgsi_tex': r600_shader.c:1611: warning: 'src2_chan' may be used uninitialized in this function r600_shader.c:1611: warning: 'src_chan' may be used uninitialized in this function
* r300g: fix macrotiling on R350Marek Olšák2010-09-261-2/+2
| | | | | | MACRO_SWITCH on R350 appears to use the RV350 mode by default. Who knew? NOTE: This is a candidate for the 7.9 branch.
* r600g: use depth decompression in new pathJerome Glisse2010-09-262-11/+53
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: move around variables to share depth uncompression codeJerome Glisse2010-09-263-12/+11
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: set ENABLE_KILL on evergreen tooBas Nieuwenhuizen2010-09-261-0/+8
|
* r600g: set ENABLE_KILL in the shader state in the new designBas Nieuwenhuizen2010-09-261-0/+8
|
* r600g: disable early cull optimization when occlusion query runningJerome Glisse2010-09-261-0/+1
| | | | | | | | | | When occlusion query are running we want to have accurate fragment count thus disable any early culling optimization GPU has. Based on work from Bas Nieuwenhuizen <[email protected]> Signed-off-by: Jerome Glisse <[email protected]>
* r300g: Remove unused variable.Vinson Lee2010-09-261-1/+0
| | | | | | Fixes this GCC warning. r300_state.c: In function 'r300_create_rs_state': r300_state.c:925: warning: unused variable 'i'
* r300g: fix glsl-fs-pointcoordDave Airlie2010-09-264-23/+28
| | | | | | | Move GB_ENABLE to derived rs state, and find sprite coord for the correct generic and enable the tex coord for that generic. Signed-off-by: Dave Airlie <[email protected]>
* softpipe: minor asst. clean-upsBrian Paul2010-09-252-12/+11
|
* softpipe: make clip state functions staticBrian Paul2010-09-253-26/+26
|
* softpipe: make stream out state functions staticBrian Paul2010-09-253-24/+24
|
* softpipe: make rasterizer state functions staticBrian Paul2010-09-253-16/+19
|
* softpipe: make vertex state functions staticBrian Paul2010-09-253-22/+24
|
* softpipe: make sampler state functions staticBrian Paul2010-09-253-59/+31
|
* softpipe: make blend/stencil/depth functions staticBrian Paul2010-09-253-50/+44
|
* softpipe: make shader-related functions staticBrian Paul2010-09-253-63/+58
|
* softpipe: rename sp_state_fs.c -> sp_state_shader.cBrian Paul2010-09-253-2/+2
|
* softpipe: fix repeat() function for NPOT texturesBrian Paul2010-09-251-4/+4
| | | | | The trick of casting the coord to an unsigned value only works for POT textures. Add a bias instead. This fixes a few piglit texwrap failures.
* r600g: Disable unused variables.Vinson Lee2010-09-251-1/+1
| | | | | | | | | The variables are used only in currently disabled code. Fixes this GCC warning. r600_context.c: In function 'r600_flush': r600_context.c:76: warning: unused variable 'dname' r600_context.c:75: warning: unused variable 'dc'