Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glsl2: Decompose matrix comparison into vector operations | Ian Romanick | 2010-08-27 | 1 | -9/+97 |
| | |||||
* | trace: Don't try to dump the rgba array if null | Jakob Bornecrantz | 2010-08-28 | 1 | -1/+4 |
| | |||||
* | glsl: Rename a couple of common variable names in mat_op_to_vec. | Eric Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -0/+1 |
| | |||||
* | glsl: Protect against double compiler-destroy. | Eric Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -0/+1 |
| | | | | Bug #29665. | ||||
* | i965: Don't strip negate/abs flags when assigning uniform locations. | Eric Anholt | 2010-08-27 | 1 | -5/+5 |
| | | | | Fixes glsl-algebraic-sub-zero-4. | ||||
* | i965: Add missing handling for BRW_OPCODE_SEL. | Eric Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -0/+4 |
| | | | | Fixes glsl-fs-mod. | ||||
* | r600g: fix vbo size | Jerome Glisse | 2010-08-27 | 1 | -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 Paul | 2010-08-27 | 1 | -2/+2 |
| | |||||
* | mesa: Use the format info to identify packed depth/stencil formats. | Nick Bowler | 2010-08-27 | 1 | -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 memory | Brian Paul | 2010-08-27 | 1 | -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 inclusion | Brian Paul | 2010-08-27 | 1 | -8/+28 |
| | | | | As it was, the header could not be cleanly #included by a C source. | ||||
* | glsl2: remove 'extern' keyword in .c file | Brian Paul | 2010-08-27 | 1 | -1/+1 |
| | |||||
* | i965: Fix swapped instructions in ir_unop_abs and ir_unop_neg. | Eric Anholt | 2010-08-27 | 1 | -2/+2 |
| | | | | Fixes glsl-fs-neg and 5 other tests. | ||||
* | i965: Add generate() handling for AND, OR, XOR. | Eric Anholt | 2010-08-27 | 1 | -0/+11 |
| | | | | 10 more piglit tests pass. | ||||
* | i965: Add support for if instructions in the new FS backend. | Eric Anholt | 2010-08-27 | 1 | -1/+61 |
| | | | | 20 more piglit tests pass. | ||||
* | i965: When encountering an unknown opcode in new FS backend, print its name. | Eric Anholt | 2010-08-27 | 3 | -14/+23 |
| | |||||
* | i965: Fix the maximum grf counting in the new FS backend. | Eric Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -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 Anholt | 2010-08-27 | 1 | -11/+21 |
| | |||||
* | i965: Fix destination writemasking in the new FS. | Eric Anholt | 2010-08-27 | 1 | -6/+5 |
| | |||||
* | i965: Fix swizzling in vector splitting for the new FS backend. | Eric Anholt | 2010-08-27 | 1 | -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 Rusin | 2010-08-27 | 1 | -0/+1 |
| | |||||
* | mesa: free the fallback texture object in free_shared_state() | Brian Paul | 2010-08-27 | 1 | -0/+4 |
| | |||||
* | mesa: fix double-underscore naming | Brian Paul | 2010-08-27 | 1 | -4/+4 |
| | |||||
* | llvmpipe: use util_iround in place of round | Keith Whitwell | 2010-08-27 | 1 | -1/+1 |
| | | | | Fix mingw build. | ||||
* | util: fix typo in MAX4 | Keith Whitwell | 2010-08-27 | 1 | -1/+1 |
| | | | | Thanks to Michal for spotting it. | ||||
* | llvmpipe: eliminate tri->dx, tri->dy values | Keith Whitwell | 2010-08-27 | 2 | -42/+39 |
| | | | | Use an internal struct for line setup information. | ||||
* | llvmpipe: point sprites rasterization | Hui Qi Tay | 2010-08-27 | 7 | -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 rasterization | Hui Qi Tay | 2010-08-27 | 1 | -16/+18 |
| | | | | | | | | A few subpixel_snap and fixed width changes. Conflicts: src/gallium/drivers/llvmpipe/lp_setup_point.c | ||||
* | llvmpipe: native point rasterization | Hui Qi Tay | 2010-08-27 | 8 | -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 master | Keith Whitwell | 2010-08-27 | 4 | -374/+227 |
| | |||||
* | util: add MIN4, MAX4 | Keith Whitwell | 2010-08-27 | 1 | -0/+3 |
| | |||||
* | llvmpipe: native line rasterization with correct pixel rasterization | Hui Qi Tay | 2010-08-27 | 1 | -29/+213 |
| | | | | | Line rasterization that follows diamond exit rule. Can still optimize logic for start/endpoints. | ||||
* | llvmpipe: native rasterization for lines | Hui Qi Tay | 2010-08-27 | 11 | -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 makefile | Keith Whitwell | 2010-08-27 | 1 | -0/+2 |
| | |||||
* | llvmpipe: intrinsics version of triangle coeficient calculation | Keith Whitwell | 2010-08-27 | 5 | -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 Lee | 2010-08-27 | 1 | -2/+0 |
| | | | | Remove p_compiler.h. | ||||
* | tgsi: Include missing header in tgsi_parse.h. | Vinson Lee | 2010-08-27 | 1 | -0/+1 |
| | | | | Include p_compiler.h for boolean and INLINE symbols. | ||||
* | tgsi: Include missing header in tgsi_info.h. | Vinson Lee | 2010-08-27 | 1 | -0/+1 |
| | | | | Include p_compiler.h for uint symbol. | ||||
* | tgsi: Include missing header in tgsi_dump.h. | Vinson Lee | 2010-08-27 | 1 | -0/+1 |
| | | | | Include p_compiler.h for uint symbol. | ||||
* | gallium: Remove unnecessary header from p_format.h. | Vinson Lee | 2010-08-27 | 1 | -2/+0 |
| | | | | Remove p_compiler.h. | ||||
* | graw: Include missing header in graw.h. | Vinson Lee | 2010-08-27 | 1 | -0/+1 |
| | | | | Include p_compiler.h for PUBLIC symbol. |