Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | r300g: Include missing header in r300_texture.h. | Vinson Lee | 2010-08-27 | 1 | -0/+1 |
| | | | | Include p_compiler.h for uint32_t and boolean symbols. | ||||
* | Fix typo in function name "shading_laguage_version". | Kenneth Graunke | 2010-08-26 | 1 | -2/+2 |
| | |||||
* | Revert "r600g: simplify states" | Dave Airlie | 2010-08-27 | 15 | -8277/+1720 |
| | | | | | | | | | This reverts commit bd25e23bf3740f59ce8859848c715daeb9e9821f. Apart from introducing a lot of hex magic numbers and being highly impenetable code, it causes lots of lockups on an average piglit run that always runs without lockups. Always run piglit before/after doing big things like this. | ||||
* | r600g: add initial if/else/endif support | Dave Airlie | 2010-08-27 | 4 | -12/+170 |
| | | | | | | | | | this adds handling for some more CF instructions and conditions also adds parameter for stack size emission These seem to pass on VS with the stack size hack but not on FS, TODO: fix FS + stack size calcs | ||||
* | r600g: optimise op2 and swapped op2 emission. | Dave Airlie | 2010-08-27 | 1 | -48/+37 |
| | | | | | | this makes op2 emission smaller, since it skips instructions that don't write to the dst. not sure if this could have unwanted side effects but try it and see. |