summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* u_staging: remove useless inline keywordLuca Barbieri2010-08-111-1/+1
|
* translate_test: fix, reindent, and improveLuca Barbieri2010-08-111-137/+204
| | | | | | | 1. Fix the segfault due to the reverted commit using the new interface 2. Reindent to Mesa 3 spaces style 3. Improve output and return success/failure with error code 4. Add much better support for testing translate_sse
* translate: allow clients to ask for supported output formatsLuca Barbieri2010-08-113-0/+88
| | | | | | | | | | | | | Currently translate asserts on unsupported output formats, making it impossible to use for some purposes, such as testing whether it actually works on all formats it supports. Removing the assert was met with opposition, so this change allows clients to ask whether an output format is supported, and they are thus able to avoid attempting to use it. Since this is just an addition to the API, no adverse effect is possible, and it makes the testsuite work again.
* auxiliary: Make u_staging.c MSVC compatible.Vinson Lee2010-08-111-3/+5
| | | | Fixes MSVC build.
* translate: Add translate_test.c to SCons.Vinson Lee2010-08-111-1/+2
| | | | | This is a follow-up to commit 945e38c73b46afc12b0655f9fc8200f216a8f8c1, which added translate_test.c to make.
* auxiliary: Add u_staging.c to SCons build.Vinson Lee2010-08-111-0/+1
| | | | | This is a follow-up to commit b85c71d4e1e4ed788be834dff5b7b3c0cd0402ac which added u_staging.c to make.
* r300/compiler: Implement the CONT opcode.Tom Stellard2010-08-115-8/+21
|
* r300/compiler: Handle loops in the register allocator.Tom Stellard2010-08-111-4/+34
|
* r600g: accept empty frag prog shaderJerome Glisse2010-08-113-3/+17
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: add src negation supportJerome Glisse2010-08-111-0/+1
| | | | | | Should fix few glBitmap cases. Signed-off-by: Jerome Glisse <[email protected]>
* gallivm: Fix and enable the extra Newton/Raphson step in lp_build_rcp().José Fonseca2010-08-111-2/+2
| | | | Thanks to Michal for spotting this.
* r600g: add point/sprite rendering supportJerome Glisse2010-08-113-14/+149
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* Revert "translate_generic: return NULL instead of assert(0) if format not ↵Luca Barbieri2010-08-111-6/+9
| | | | | | | | | | | supported" This reverts commit 16b45ca7cefb3432b4133fe9d0b1dbfe3f286131. José Fonseca asked for a revert. Note that the testsuite will now segfault since it attempts to test all possible formats.
* translate_generic: fix broken A8R8G8B8_UNORM outputLuca Barbieri2010-08-111-3/+9
| | | | | | | translate was attempting to output A8R8G8B8_UNORM as if it were R8G8B8A8_UNORM. Now the tests just added pass.
* translate: add testsuiteLuca Barbieri2010-08-112-1/+172
| | | | | Currently only checks all possible format conversions, and doesn't attempt to test whether multiple buffers/elements or indices work.
* translate_generic: return NULL instead of assert(0) if format not supportedLuca Barbieri2010-08-111-9/+6
| | | | This gives the caller a chance to recover (or crash anyway otherwise).
* auxiliary: fix util_framebuffer_copyLuca Barbieri2010-08-111-2/+4
| | | | | | | | | util_framebuffer_copy was attempting to copy all elements of the source framebuffer state. However, this breaks if the user does not zero initialize the structure. Instead, only copy the elements up to nr_cbufs, and clear elements up to dst->nr_cbufs, if the destination was larger than the source.
* gallivm: Use lp_build_div instead of lp_build_mul + lp_build_rcp.José Fonseca2010-08-111-2/+1
| | | | | | | Single divide, so let lp_build_div decide how to implement this. This will save a multiplication in architectures which don't have a RCP intrinsic.
* gallivm: Use unsigned shift in lp_build_minify.José Fonseca2010-08-111-1/+1
| | | | Texture dimensions are unsigned.
* llvmpipe: Debug code to dump interpolation coefficients.José Fonseca2010-08-111-1/+29
|
* llvmpipe: Use single precision divide for one over area computation.José Fonseca2010-08-111-1/+1
|
* util: copy the u_staging commit message to the codeMarek Olšák2010-08-111-1/+9
|
* auxiliary: support for transfers using staging resourcesLuca Barbieri2010-08-113-0/+123
| | | | | | | | | | | Direct3D 10/11 has no concept of transfers. Applications instead create resources with a STAGING or DYNAMIC usage, copy between them and the real resource and use Map to map the STAGING/DYNAMIC resource. This util module allows to implement Gallium drivers as a Direct3D driver would be implemented: transfers allocate a resource with PIPE_USAGE_STAGING, and copy the data between it and the real resource with resource_copy_region.
* gallium: add ALWAYS_INLINELuca Barbieri2010-08-111-0/+10
| | | | | Used when we want to be sure the compiler inlines a large function into an inner loop.
* u_surfaces: add util_surfaces_peekLuca Barbieri2010-08-111-0/+13
| | | | Used to find out if a surface exists without creating one.
* u_surfaces: use cso_hash instead of util_hash_tableLuca Barbieri2010-08-112-53/+31
| | | | | Using cso_hash directly is the right thing since util_hash_table adds useless overhead and is harder to use for this application.
* u_surfaces: fix surface leak due to off by oneLuca Barbieri2010-08-111-1/+1
|
* auxiliary: make primitive splitter assert on unimplemented adjacency primsLuca Barbieri2010-08-111-1/+4
| | | | | They are unimplemented, even though the framework makes it possible to implement them well, and nv50 needs them.
* auxiliary: fix u_split_prim naming conventionLuca Barbieri2010-08-113-9/+9
| | | | Current practice is to start identifiers with "util_" instead of "u_".
* auxiliary: move Ben Skeggs' primitive splitter to common codeLuca Barbieri2010-08-114-102/+104
| | | | | | | | | | | | | | | | | | | | | This is a simple framework that handles splitting primitives in an abstract way. The user has to specify the primitive start, start index and count. Then, it can ask the primitive splitter to "draw" a chunk of the primitive, staying under a given vertex/index budget. The primitive splitter will then call user-supplied functions to emit a range of vertices/indices, as well as switch the edgeflag on or off. This is particularly useful for hardware that either has limits on the vertex count field, or where vertices are pushed on a FIFO or temporary buffer of limited size. Note that unlike other splitters, it does not manipulate data in any way, and merely asks a callback to do so, in vertex intervals.
* mesa: Include missing header in prog_noise.h.Vinson Lee2010-08-111-0/+2
| | | | Include glheader.h for GLfloat symbol.
* mesa: Clean up header file inclusion in prog_instruction.h.Vinson Lee2010-08-111-1/+1
| | | | | Remove mfeatures.h. Include glheader.h for GL symbols.
* mesa: Include missing header in prog_execute.h.Vinson Lee2010-08-111-0/+1
| | | | Include mtypes.h for GLcontext symbol.
* mesa: Include missing header in prog_cache.h.Vinson Lee2010-08-111-0/+3
| | | | Include mtypes.h for GLcontext symbol.
* mesa: Include missing header in nvvertparse.h.Vinson Lee2010-08-111-0/+1
| | | | Include mtypes.h for GLcontext symbol.
* mesa: Include missing header in nvfragparse.h.Vinson Lee2010-08-111-0/+1
| | | | Include mtypes.h for GLcontext symbol.
* mesa: Remove unnecessary header from hash_table.h.Vinson Lee2010-08-111-2/+0
|
* swrast: fix span color array pointer assignment for 32-bit/channel rendering[email protected]2010-08-101-0/+17
| | | | | | | | See fd.o bug 29487. NOTE: This is a candidate for the 7.8 branch. Signed-off-by: Brian Paul <[email protected]>
* r300g: initialize VAP_VTX_STATE_CNTLMarek Olšák2010-08-111-0/+5
| | | | This got lost during the rasterizer rewrite.
* r300g: implement gl_FrontFacingMarek Olšák2010-08-115-7/+97
|
* swrast: Remove unnecessary header.Vinson Lee2010-08-101-1/+0
|
* svga: Remove unnecessary headers.Vinson Lee2010-08-101-2/+0
|
* r300g: Remove unnecessary header.Vinson Lee2010-08-101-1/+0
|
* glut: also check for GLX_ARB_multisampleNigel Stewart2010-08-102-8/+11
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: use switch stmt in init_program_limits()Brian Paul2010-08-101-5/+10
|
* mesa: remove obsolete commentsBrian Paul2010-08-101-9/+9
|
* r300/compiler: Use predicate bit for IF statements in r500 vertex shadersTom Stellard2010-08-103-3/+153
|
* r300/compiler: Implement hardware assisted loops for vertex shaders.Tom Stellard2010-08-1011-21/+210
| | | | Single loops work, but nested loops do not.
* r300/compiler: Correctly transform nested loops.Tom Stellard2010-08-101-16/+9
|
* r600g: avoid reemiting literal, avoid scheduling empty csJerome Glisse2010-08-106-32/+40
| | | | Signed-off-by: Jerome Glisse <[email protected]>