summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-08-12scons: Add main/querymatrix.c to SCons build.Vinson Lee
Commit 87eb66775949af6e9512daf7e4665c1cfa6b8745 added querymatrix.c to make but not to SCons.
2010-08-12glsl: print to stderr like other program printing codeBrian Paul
2010-08-12mesa: Fix FreeBSD build with llvm enabled.Vinson Lee
On FreeBSD LC_CTYPE_MASK is not available but 'llvm-config --cppflags' adds the compiler flag -D_GNU_SOURCE to the build.
2010-08-12translate_test: fix compilation on non-POSIX platformsLuca Barbieri
Use a kludgy function based on rand() instead of drand48()
2010-08-12translate_test: improveLuca Barbieri
1. Generate random data specifically for float and doubles, so that they end up in [0, 1] range 2. Don't test useless conversions like SCALED <-> NORM 3. Poison the buffers before testing
2010-08-12Revert "u_blitter: unify clear_depth_stencil and flush_depth_stencil"Marek Olšák
This reverts commit de4784e36505316c2a5ab34cc5b371d17f38d3c5.
2010-08-12r600: add support for draw_elements_base_vertexAndre Maasikas
use VTX_BASE_VTX_LOC for offset, last time using INDEX_OFFSET was probably a wrong register for this
2010-08-12mesa: Clean up header file inclusion in prog_uniform.h.Vinson Lee
Remove mtypes.h. Remove prog_statevars.h. Include glheader.h for GL symbols.
2010-08-12mesa: Include missing headers in prog_print.h.Vinson Lee
Include stdio.h for FILE symbol. Include glheader.h for GL symbols. Include mtypes.h for GLcontext symbol. Add forward declarations.
2010-08-12mesa: Include missing header in prog_optimize.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-12r600g: fix typo in stencil translate.Dave Airlie
fixes piglit stencil-twoside and stencil-wrap
2010-08-12r600g: fix provoking-vertex piglit test.Dave Airlie
2010-08-12r600g: improve texture format checker.Dave Airlie
This takes the r300g texture format checker and fixes it up for r600g, it passes glean texSwizzle, pixelformats, and texture_srgb tests, however I think it L8S8_SRGB is broken as is L8_SRGB, need to investigate. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-12u_blitter: unify clear_depth_stencil and flush_depth_stencilMarek Olšák
No need to enable depth test for clear.
2010-08-11scons: Fix freebsd8 build.Vinson Lee
2010-08-11scons: Add freebsd8 to list of accepted platforms.Vinson Lee
2010-08-12r300/compiler: remove an unused variableMarek Olšák
2010-08-11translate_test: fix segfault on x86-64Luca Barbieri
2010-08-11u_staging: remove useless inline keywordLuca Barbieri
2010-08-11translate_test: fix, reindent, and improveLuca Barbieri
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
2010-08-11translate: allow clients to ask for supported output formatsLuca Barbieri
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.
2010-08-11auxiliary: Make u_staging.c MSVC compatible.Vinson Lee
Fixes MSVC build.
2010-08-11translate: Add translate_test.c to SCons.Vinson Lee
This is a follow-up to commit 945e38c73b46afc12b0655f9fc8200f216a8f8c1, which added translate_test.c to make.
2010-08-11auxiliary: Add u_staging.c to SCons build.Vinson Lee
This is a follow-up to commit b85c71d4e1e4ed788be834dff5b7b3c0cd0402ac which added u_staging.c to make.
2010-08-11r300/compiler: Implement the CONT opcode.Tom Stellard
2010-08-11r300/compiler: Handle loops in the register allocator.Tom Stellard
2010-08-11r600g: accept empty frag prog shaderJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-11r600g: add src negation supportJerome Glisse
Should fix few glBitmap cases. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-11gallivm: Fix and enable the extra Newton/Raphson step in lp_build_rcp().José Fonseca
Thanks to Michal for spotting this.
2010-08-11r600g: add point/sprite rendering supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-11Revert "translate_generic: return NULL instead of assert(0) if format not ↵Luca Barbieri
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.
2010-08-11translate_generic: fix broken A8R8G8B8_UNORM outputLuca Barbieri
translate was attempting to output A8R8G8B8_UNORM as if it were R8G8B8A8_UNORM. Now the tests just added pass.
2010-08-11translate: add testsuiteLuca Barbieri
Currently only checks all possible format conversions, and doesn't attempt to test whether multiple buffers/elements or indices work.
2010-08-11translate_generic: return NULL instead of assert(0) if format not supportedLuca Barbieri
This gives the caller a chance to recover (or crash anyway otherwise).
2010-08-11auxiliary: fix util_framebuffer_copyLuca Barbieri
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.
2010-08-11gallivm: Use lp_build_div instead of lp_build_mul + lp_build_rcp.José Fonseca
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.
2010-08-11gallivm: Use unsigned shift in lp_build_minify.José Fonseca
Texture dimensions are unsigned.
2010-08-11llvmpipe: Debug code to dump interpolation coefficients.José Fonseca
2010-08-11llvmpipe: Use single precision divide for one over area computation.José Fonseca
2010-08-11util: copy the u_staging commit message to the codeMarek Olšák
2010-08-11auxiliary: support for transfers using staging resourcesLuca Barbieri
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.
2010-08-11gallium: add ALWAYS_INLINELuca Barbieri
Used when we want to be sure the compiler inlines a large function into an inner loop.
2010-08-11u_surfaces: add util_surfaces_peekLuca Barbieri
Used to find out if a surface exists without creating one.
2010-08-11u_surfaces: use cso_hash instead of util_hash_tableLuca Barbieri
Using cso_hash directly is the right thing since util_hash_table adds useless overhead and is harder to use for this application.
2010-08-11u_surfaces: fix surface leak due to off by oneLuca Barbieri
2010-08-11auxiliary: make primitive splitter assert on unimplemented adjacency primsLuca Barbieri
They are unimplemented, even though the framework makes it possible to implement them well, and nv50 needs them.
2010-08-11auxiliary: fix u_split_prim naming conventionLuca Barbieri
Current practice is to start identifiers with "util_" instead of "u_".
2010-08-11auxiliary: move Ben Skeggs' primitive splitter to common codeLuca Barbieri
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.
2010-08-11mesa: Include missing header in prog_noise.h.Vinson Lee
Include glheader.h for GLfloat symbol.
2010-08-11mesa: Clean up header file inclusion in prog_instruction.h.Vinson Lee
Remove mfeatures.h. Include glheader.h for GL symbols.