summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Rename a couple of common variable names in mat_op_to_vec.Eric Anholt2010-08-271-16/+18
| | | | | It was easy while typing implementations to accidentally overwrite the original expression or assignment variables.
* glsl: Make mat_op_to_vec allocate out of the IR's parent.Eric Anholt2010-08-271-32/+36
| | | | | This will reduce memory consumption of compiled shaders by not dragging optimized-out children around.
* i965: Set the pop count on BRK/CONT inside of an if statement in the FS.Eric Anholt2010-08-271-4/+11
| | | | | | | This is the same as 8de8c97275e9555183a7e8f2238143657bbe60b2 for the VS, and fixes glsl-fs-if-nested-loop and the mandelbrot demo. Bug #29498
* glsl: Regenerate for double destroy fix.Eric Anholt2010-08-271-0/+1
|
* glsl: Protect against double compiler-destroy.Eric Anholt2010-08-271-0/+1
| | | | | DRI was doing teardown when we close the last screen, then an atexit() was added to call it as well.
* dri: Get prototype for _mesa_destroy_compiler().Eric Anholt2010-08-271-0/+1
| | | | Bug #29665.
* i965: Don't strip negate/abs flags when assigning uniform locations.Eric Anholt2010-08-271-5/+5
| | | | Fixes glsl-algebraic-sub-zero-4.
* i965: Add missing handling for BRW_OPCODE_SEL.Eric Anholt2010-08-271-0/+4
| | | | Fixes 4 piglit tests about min, max, and clamp.
* i965: Mask out higher bits of the result of BRW_CMP producing a boolean.Eric Anholt2010-08-271-0/+6
| | | | | When it says it sets the LSB, that's not just a hint as to where the result goes. Only the LSB is modified. Fixes 20 piglit cases.
* i965: Fix the types of immediate integer values.Eric Anholt2010-08-271-2/+2
| | | | When we're trying to do integer ops, handing a float in doesn't help.
* i965: Add translation for RNDD and RNDZ.Eric Anholt2010-08-271-0/+7
| | | | | | Fixes: glsl-fs-any. glsl1-integer division with uniform var
* i965: Add support for ir_binop_mod using do_mod_to_fract.Eric Anholt2010-08-271-0/+4
| | | | Fixes glsl-fs-mod.
* r600g: fix vbo sizeJerome Glisse2010-08-271-1/+1
| | | | | | Silence the kernel, vbo size is size - 1. Signed-off-by: Jerome Glisse <[email protected]>
* mesa: move null ptr check (fdo bug 29843)Brian Paul2010-08-271-2/+2
|
* mesa: Use the format info to identify packed depth/stencil formats.Nick Bowler2010-08-271-6/+2
| | | | | | | | | | | Due to a misunderstanding of the Z24_X8 and X8_Z24 formats, the earlier patch created depth/stencil wrappers for them. This broke swrast. Use the format info instead, which only identifies Z24_S8 and S8_Z24 as packed depth/stencil. It also has the advantage of being nicer code. Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: use atexit() handler to release GLSL compiler memoryBrian Paul2010-08-271-0/+9
| | | | | | | | This releases a bunch of memory that was showing up as leaks with valgrind. If atexit() isn't widely supported we may need to add some #ifdef tests around the call.
* glsl2: restructure header file for C++ and C inclusionBrian Paul2010-08-271-8/+28
| | | | As it was, the header could not be cleanly #included by a C source.
* glsl2: remove 'extern' keyword in .c fileBrian Paul2010-08-271-1/+1
|
* i965: Fix swapped instructions in ir_unop_abs and ir_unop_neg.Eric Anholt2010-08-271-2/+2
| | | | Fixes glsl-fs-neg and 5 other tests.
* i965: Add generate() handling for AND, OR, XOR.Eric Anholt2010-08-271-0/+11
| | | | 10 more piglit tests pass.
* i965: Add support for if instructions in the new FS backend.Eric Anholt2010-08-271-1/+61
| | | | 20 more piglit tests pass.
* i965: When encountering an unknown opcode in new FS backend, print its name.Eric Anholt2010-08-273-14/+23
|
* i965: Fix the maximum grf counting in the new FS backend.Eric Anholt2010-08-271-1/+1
| | | | | | glsl-algebraic-rcp-rsq managed to use 33 registers, and we claimed to only use 32, so the write to g32 would go stomping over the precious g0 of some other thread.
* i965: Validate the IR tree after doing our custom optimization passes.Eric Anholt2010-08-271-0/+2
| | | | | | | This wouldn't catch the last failure fixed in them, because we don't validate assignments well (due to the fact that we've got a pretty glaring inconsistency in how we handle assignment writemasking), but it could catch other failure we may produce.
* i965: Add a bit of support for matrices to the new FS.Eric Anholt2010-08-271-11/+21
|
* i965: Fix destination writemasking in the new FS.Eric Anholt2010-08-271-6/+5
|
* i965: Fix swizzling in vector splitting for the new FS backend.Eric Anholt2010-08-271-0/+3
| | | | | | | | We weren't smearing a component of a split RHS out to reach an unsplit LHS's writemask, so gl_FragColor (always unsplit) would often get uninitialized values. Fixes: glsl-algebraic-add-add-1 (and probably many others).
* graw: fix the build (missing header)Zack Rusin2010-08-271-0/+1
|
* mesa: free the fallback texture object in free_shared_state()Brian Paul2010-08-271-0/+4
|
* mesa: fix double-underscore namingBrian Paul2010-08-271-4/+4
|
* llvmpipe: use util_iround in place of roundKeith Whitwell2010-08-271-1/+1
| | | | Fix mingw build.
* util: fix typo in MAX4Keith Whitwell2010-08-271-1/+1
| | | | Thanks to Michal for spotting it.
* llvmpipe: eliminate tri->dx, tri->dy valuesKeith Whitwell2010-08-272-42/+39
| | | | Use an internal struct for line setup information.
* llvmpipe: point sprites rasterizationHui Qi Tay2010-08-277-10/+93
| | | | | Point sprites now done in the rasterizer setup code instead of going through the draw module.
* llvmpipe: native point rasterization with better pixel rasterizationHui Qi Tay2010-08-271-16/+18
| | | | | | | | A few subpixel_snap and fixed width changes. Conflicts: src/gallium/drivers/llvmpipe/lp_setup_point.c
* llvmpipe: native point rasterizationHui Qi Tay2010-08-278-5/+262
| | | | | | | | Conflicts: src/gallium/drivers/llvmpipe/lp_setup_context.h src/gallium/drivers/llvmpipe/lp_setup_line.c src/gallium/drivers/llvmpipe/lp_setup_tri.c
* llvmpipe: update line rasterization code to current masterKeith Whitwell2010-08-274-374/+227
|
* util: add MIN4, MAX4Keith Whitwell2010-08-271-0/+3
|
* llvmpipe: native line rasterization with correct pixel rasterizationHui Qi Tay2010-08-271-29/+213
| | | | | Line rasterization that follows diamond exit rule. Can still optimize logic for start/endpoints.
* llvmpipe: native rasterization for linesHui Qi Tay2010-08-2711-22/+685
| | | | | Rasterize lines directly by treating them as 4-sided polygons. Still need to check the exact pixel rasteration.
* llvmpipe: add lp_setup_coef to makefileKeith Whitwell2010-08-271-0/+2
|
* llvmpipe: intrinsics version of triangle coeficient calculationKeith Whitwell2010-08-275-300/+577
| | | | | | Looks nice, but makes almost no impact on performance - maybe a percent or so in isosurf, nothing elsewhere. May be of use later on.
* gallium: Remove unnecessary header from p_shader_tokens.h.Vinson Lee2010-08-271-2/+0
| | | | Remove p_compiler.h.
* tgsi: Include missing header in tgsi_parse.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for boolean and INLINE symbols.
* tgsi: Include missing header in tgsi_info.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for uint symbol.
* tgsi: Include missing header in tgsi_dump.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for uint symbol.
* gallium: Remove unnecessary header from p_format.h.Vinson Lee2010-08-271-2/+0
| | | | Remove p_compiler.h.
* graw: Include missing header in graw.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for PUBLIC symbol.
* r300g: Include missing header in r300_texture.h.Vinson Lee2010-08-271-0/+1
| | | | Include p_compiler.h for uint32_t and boolean symbols.
* Fix typo in function name "shading_laguage_version".Kenneth Graunke2010-08-261-2/+2
|