summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-08-27glsl: Protect against double compiler-destroy.Eric Anholt
DRI was doing teardown when we close the last screen, then an atexit() was added to call it as well.
2010-08-27dri: Get prototype for _mesa_destroy_compiler().Eric Anholt
Bug #29665.
2010-08-27i965: Don't strip negate/abs flags when assigning uniform locations.Eric Anholt
Fixes glsl-algebraic-sub-zero-4.
2010-08-27i965: Add missing handling for BRW_OPCODE_SEL.Eric Anholt
Fixes 4 piglit tests about min, max, and clamp.
2010-08-27i965: Mask out higher bits of the result of BRW_CMP producing a boolean.Eric Anholt
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.
2010-08-27i965: Fix the types of immediate integer values.Eric Anholt
When we're trying to do integer ops, handing a float in doesn't help.
2010-08-27i965: Add translation for RNDD and RNDZ.Eric Anholt
Fixes: glsl-fs-any. glsl1-integer division with uniform var
2010-08-27i965: Add support for ir_binop_mod using do_mod_to_fract.Eric Anholt
Fixes glsl-fs-mod.
2010-08-27r600g: fix vbo sizeJerome Glisse
Silence the kernel, vbo size is size - 1. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-27mesa: move null ptr check (fdo bug 29843)Brian Paul
2010-08-27mesa: Use the format info to identify packed depth/stencil formats.Nick Bowler
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 <nbowler@draconx.ca> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-08-27mesa: use atexit() handler to release GLSL compiler memoryBrian Paul
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.
2010-08-27glsl2: restructure header file for C++ and C inclusionBrian Paul
As it was, the header could not be cleanly #included by a C source.
2010-08-27glsl2: remove 'extern' keyword in .c fileBrian Paul
2010-08-27i965: Fix swapped instructions in ir_unop_abs and ir_unop_neg.Eric Anholt
Fixes glsl-fs-neg and 5 other tests.
2010-08-27i965: Add generate() handling for AND, OR, XOR.Eric Anholt
10 more piglit tests pass.
2010-08-27i965: Add support for if instructions in the new FS backend.Eric Anholt
20 more piglit tests pass.
2010-08-27i965: When encountering an unknown opcode in new FS backend, print its name.Eric Anholt
2010-08-27i965: Fix the maximum grf counting in the new FS backend.Eric Anholt
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.
2010-08-27i965: Validate the IR tree after doing our custom optimization passes.Eric Anholt
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.
2010-08-27i965: Add a bit of support for matrices to the new FS.Eric Anholt
2010-08-27i965: Fix destination writemasking in the new FS.Eric Anholt
2010-08-27i965: Fix swizzling in vector splitting for the new FS backend.Eric Anholt
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).
2010-08-27graw: fix the build (missing header)Zack Rusin
2010-08-27mesa: free the fallback texture object in free_shared_state()Brian Paul
2010-08-27mesa: fix double-underscore namingBrian Paul
2010-08-27llvmpipe: use util_iround in place of roundKeith Whitwell
Fix mingw build.
2010-08-27util: fix typo in MAX4Keith Whitwell
Thanks to Michal for spotting it.
2010-08-27llvmpipe: eliminate tri->dx, tri->dy valuesKeith Whitwell
Use an internal struct for line setup information.
2010-08-27llvmpipe: point sprites rasterizationHui Qi Tay
Point sprites now done in the rasterizer setup code instead of going through the draw module.
2010-08-27llvmpipe: native point rasterization with better pixel rasterizationHui Qi Tay
A few subpixel_snap and fixed width changes. Conflicts: src/gallium/drivers/llvmpipe/lp_setup_point.c
2010-08-27llvmpipe: native point rasterizationHui Qi Tay
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
2010-08-27llvmpipe: update line rasterization code to current masterKeith Whitwell
2010-08-27util: add MIN4, MAX4Keith Whitwell
2010-08-27llvmpipe: native line rasterization with correct pixel rasterizationHui Qi Tay
Line rasterization that follows diamond exit rule. Can still optimize logic for start/endpoints.
2010-08-27llvmpipe: native rasterization for linesHui Qi Tay
Rasterize lines directly by treating them as 4-sided polygons. Still need to check the exact pixel rasteration.
2010-08-27llvmpipe: add lp_setup_coef to makefileKeith Whitwell
2010-08-27llvmpipe: intrinsics version of triangle coeficient calculationKeith Whitwell
Looks nice, but makes almost no impact on performance - maybe a percent or so in isosurf, nothing elsewhere. May be of use later on.
2010-08-27gallium: Remove unnecessary header from p_shader_tokens.h.Vinson Lee
Remove p_compiler.h.
2010-08-27tgsi: Include missing header in tgsi_parse.h.Vinson Lee
Include p_compiler.h for boolean and INLINE symbols.
2010-08-27tgsi: Include missing header in tgsi_info.h.Vinson Lee
Include p_compiler.h for uint symbol.
2010-08-27tgsi: Include missing header in tgsi_dump.h.Vinson Lee
Include p_compiler.h for uint symbol.
2010-08-27gallium: Remove unnecessary header from p_format.h.Vinson Lee
Remove p_compiler.h.
2010-08-27graw: Include missing header in graw.h.Vinson Lee
Include p_compiler.h for PUBLIC symbol.
2010-08-27r300g: Include missing header in r300_texture.h.Vinson Lee
Include p_compiler.h for uint32_t and boolean symbols.
2010-08-26Fix typo in function name "shading_laguage_version".Kenneth Graunke
2010-08-27Revert "r600g: simplify states"Dave Airlie
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.
2010-08-27r600g: add initial if/else/endif supportDave Airlie
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
2010-08-27r600g: optimise op2 and swapped op2 emission.Dave Airlie
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.
2010-08-27r600g: add exp support in theory.Dave Airlie
though it isn't passing the test, and this instruction is pure bonghits.