summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* svga: use TRUE/FALSE instead of 0/1Brian Paul2011-02-161-4/+4
| | | | | Some fields are booleans, others are bitmasks. Use TRUE/FALSE to clarify what's what.
* svga: fix incorrect commentBrian Paul2011-02-161-1/+1
|
* svga: dimension the dirty[] array with SVGA_STATE_MAXBrian Paul2011-02-161-1/+3
|
* mesa: make _mesa_write_renderbuffer_image() non-staticBrian Paul2011-02-162-3/+14
|
* svga: disable a debug_printf() callBrian Paul2011-02-161-3/+6
|
* mesa: 80-column wrapBrian Paul2011-02-161-2/+2
|
* svga: Proper redefine_user_buffer implementation.José Fonseca2011-02-164-1/+58
| | | | Unfortunately still not enough to make GoogleEarth happy.
* r300g: fix a race between CS and SET_TILING ioctlsMarek Olšák2011-02-166-13/+25
|
* r300g: fix blitting NPOT compressed texturesMarek Olšák2011-02-162-11/+11
|
* mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2 and 4_4Marek Olšák2011-02-161-2/+2
| | | | | | | Oops, I copy-pasted a typo from 3_3_2. The 3_3_2 part is a candidate for 7.9 and 7.10. The 4_4 part isn't, because AL44 is in neither branches.
* mesa: fix mipmap generation for MESA_FORMAT_AL44Marek Olšák2011-02-164-1/+61
| | | | This was missed when implementing AL44.
* mesa: Remove the DXT compression via blit path.José Fonseca2011-02-162-157/+1
| | | | No longer used.
* svga: Don't fake DXT compression ability.José Fonseca2011-02-162-17/+0
|
* nvc0: fix blend factor mappingChristoph Bumiller2011-02-161-31/+26
|
* nvc0: fix emit_dfdx,dfdyChristoph Bumiller2011-02-161-0/+2
|
* nvc0: don't swap sources if either value is not in a GPRChristoph Bumiller2011-02-161-0/+3
| | | | | The memory / immediate source should already be in the only valid position.
* nvc0: add missing break statements in constant_operandChristoph Bumiller2011-02-161-0/+2
|
* nvc0: fix clipping and use VIEWPORT instead of SCISSORChristoph Bumiller2011-02-165-70/+58
|
* nvc0: demagic the clear flags and fix region clearsChristoph Bumiller2011-02-163-32/+62
| | | | | The CLIP_RECTs always affect dedicated clears, and it's nicer than having to mark the viewport or scissor state dirty after it.
* nvc0: front stencil mask and func mask methods are swappedChristoph Bumiller2011-02-162-8/+10
|
* nvc0: clone memory values with multiple refs before modifying themChristoph Bumiller2011-02-161-2/+5
|
* nvc0: disable early fragment tests if KIL is usedChristoph Bumiller2011-02-161-1/+1
| | | | Early-Z pass raises the occlusion counter.
* nvc0: force vertex data through FIFO if we need to convert itChristoph Bumiller2011-02-162-1/+9
| | | | | We may want to put the converted vertex buffer in persistent storage instead, but these are rare corner cases.
* nvc0: use format from the template on surface creationChristoph Bumiller2011-02-161-1/+1
| | | | Fixes piglit/fbo-srgb.
* nvc0: update the set of formats supported by the 2D engineChristoph Bumiller2011-02-161-16/+10
|
* nvc0: fix user vertex buffer updatesChristoph Bumiller2011-02-164-11/+42
|
* mesa: use gl_format type instead of GLuintBrian Paul2011-02-161-2/+2
|
* r600g: fix typo in previous s3tc commitDave Airlie2011-02-161-1/+1
| | | | pointed out by Marek on irc.
* r300g: fix texture border color for float formatsMarek Olšák2011-02-161-1/+14
|
* Revert "util: fix DXT1 RGBA texture compression if the source color is (0, ↵Dave Airlie2011-02-161-14/+2
| | | | | | | | 0, 0, 0)" This reverts commit 6e7d782da506da233b2ac695b022ac393e1c719e. Oops, I just had this locally for testing and forgot to remove it before pushing.
* r600g: add L8A8 SRGB formats.Dave Airlie2011-02-163-2/+8
| | | | | | this fixes the piglit mipmap generation sRGB on my rv730. Signed-off-by: Dave Airlie <[email protected]>
* util: fix DXT1 RGBA texture compression if the source color is (0, 0, 0, 0)Marek Olšák2011-02-161-2/+14
| | | | | | | | | This is a workaround for a bug in libtxc_dxtn. Fixes: - piglit/GL_EXT_texture_compression_s3tc/fbo-generatemipmap-formats Signed-off-by: Dave Airlie <[email protected]>
* r600g: add L4A4 support.Dave Airlie2011-02-162-0/+12
| | | | | | this fixes piglit fbo-generatemipmap-formats on my rv730. Signed-off-by: Dave Airlie <[email protected]>
* r600g: fix s3tc-texsubimageDave Airlie2011-02-161-0/+3
| | | | | | | | we need to translate the destination box as well. fixes piglit's s3tc-texsubimage test. Signed-off-by: Dave Airlie <[email protected]>
* linker: Fix off-by-one error implicit array sizingIan Romanick2011-02-151-1/+1
| | | | | | | | | Arrays are zero based. If the highest element accessed is 6, the array needs to have 7 elements. Fixes piglit test glsl-fs-implicit-array-size-03 and bugzilla #34198. NOTE: This is a candidate for the 7.9 and 7.10 branches.
* st/python: add usage parameter to pipe_buffer_createVinson Lee2011-02-152-2/+3
| | | | | | This is a follow-up to commit eafb7f234d11a290b00dcaf5492b9bdad1cf5148. Fixes Linux SCons build.
* r300g: disable linear filtering for float texturesMarek Olšák2011-02-161-0/+45
|
* glsl: Reinstate constant-folding for division by zeroChad Versace2011-02-151-21/+21
| | | | | | | | | | | | | | | Fixes regression: https://bugs.freedesktop.org/show_bug.cgi?id=34160 Commit e7c1f058d18f62aa4871aec623f994d7b68cb8c1 disabled constant-folding when division-by-zero occured. This was a mistake, because the spec does allow division by zero. (From section 5.9 of the GLSL 1.20 spec: Dividing by zero does not cause an exception but does result in an unspecified value.) For floating-point division, the original pre-e7c1f05 behavior is reinstated. For integer division, constant-fold 1/0 to 0.
* Revert "glsl: Fix constant-folding for reciprocal expressions"Chad Versace2011-02-151-10/+6
| | | | | | | | | | | | This reverts commit b3cf92aa916ee0537ee37723c23a9897ac9cd3e0. The reverted commit prevented constant-folding of reciprocal expressions when the reciprocated expression was 0. However, since the spec allows division by zero, constant-folding *is* permissible in this case. From Section 5.9 of the GLSL 1.20 spec: Dividing by zero does not cause an exception but does result in an unspecified value.
* tnl: Add support for datatype GL_FIXED in vertex arraysChad Versace2011-02-151-0/+40
| | | | | | | | | Before populating the vertex buffer attribute pointer (VB->AttribPtr[]), convert vertex data in GL_FIXED format to GL_FLOAT. Fixes bug: http://bugs.freedesktop.org/show_bug.cgi?id=34047 NOTE: This is a candidate for the 7.9 and 7.10 branches.
* r600g: add srgb compressed formats to the list.Dave Airlie2011-02-161-0/+4
|
* gallium: add usage parameter to pipe_buffer_createMarek Olšák2011-02-1519-11/+55
| | | | | And set a reasonable buffer usage flag everywhere instead of just PIPE_USAGE_DEFAULT.
* r600g: Fix RGB10_A2 format handlingFabian Bieler2011-02-152-6/+10
|
* r600g: fix regression in r6/7xx since mipmap reworkDave Airlie2011-02-151-1/+1
| | | | I typod this when copy-pasting.
* nvc0: Fix uninitialized variable warning.Vinson Lee2011-02-151-1/+1
| | | | | | Fixes this GCC warning. nvc0_tgsi_to_nc.c: In function 'bld_tex': nvc0_tgsi_to_nc.c:1392: warning: 'dim' may be used uninitialized in this function
* r300g: offload the CS ioctl to another threadMarek Olšák2011-02-156-113/+233
| | | | | | | | | | This is a multi-threading optimization which hides the kernel overhead behind a thread. It improves performance in CPU-limited apps by 2-15%. Of course you must have at least 2 cores for it to make any difference. It can be disabled with: export RADEON_THREAD=0
* r600g: add support for s3tc formats.Dave Airlie2011-02-153-0/+75
| | | | | | | | | | | | On r600, s3tc formats require a 1D tiled texture format, so we have to do uploads using a blit, via the 64-bit and 128-bit formats Based on the r600c code we use a 64 and 128-bit type to do the blits. Still requires R600_ENABLE_S3TC until the kernel fixes are in, this has only been tested on evergreen where the kernel doesn't yet get in the way.
* r600g: fix miptree calculationsDave Airlie2011-02-154-47/+41
| | | | | | | | | | the miptree setup and pitch storing didn't work so well for block based things like compressed textures. The CB takes blocks, where the texture sampler takes pixels, and transfers need bytes, So now we store blocks/bytes and translate to pixels in the sampler. This is necessary for s3tc to work properly.
* r600g: drop tiled flagDave Airlie2011-02-154-13/+8
| | | | | | | we can work this out from the array_mode and it makes more sense to do that. Signed-off-by: Dave Airlie <[email protected]>
* st/mesa: fix compressed mipmap generation.Dave Airlie2011-02-151-6/+4
| | | | | | | | | If the underlying transfer had a stride wider for hw alignment reasons, the mipmap generation would generate badly strided images. this fixes a few problems I found while testing r600g with s3tc Signed-off-by: Dave Airlie <[email protected]>