summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-03-29Add tests for :? operatorIan Romanick
2010-03-29Implement HIR conversion for ?: operatorIan Romanick
2010-03-29Add generate_temporary to generate an anonymous temporaryIan Romanick
2010-03-29Implement HIR conversion for ast_nequal and ast_equalIan Romanick
The following tests now pass: shaders/glsl-unused-varying.frag shaders/glsl-fs-sqrt-branch.frag
2010-03-29Add missing break-statements in ast_expression::hirIan Romanick
The ast_conditional case was flowing right into ast_pre_inc.
2010-03-29Implement ir_if (for if-statments) and conversion from ASTIan Romanick
The following tests now pass: glslparsertest/shaders/if1.frag glslparsertest/shaders/if2.frag The following tests that used to pass now fail. It appears that most of these fail because ast_nequal and ast_equal are not converted to HIR. shaders/glsl-unused-varying.frag shaders/glsl-fs-sqrt-branch.frag
2010-03-29progs/glsl: Add workarounds for Apple GLSL compiler crash.Vinson Lee
fsraytrace and vsraytrace were crashing on Mac OS X 10.6.3 in the Apple GLSL compiler function TPPStreamCompiler::assignOperands. Removing some const qualifers made the crashes go away.
2010-03-29Add several simple if-statement testsIan Romanick
2010-03-29progs/glsl: Remove inline keyword.Vinson Lee
Fixes MSVC build.
2010-03-29progs/gallium/python: Get tri.py sample working again.José Fonseca
2010-03-29st/python: Update for util_draw_vertex_buffer changes.José Fonseca
2010-03-29st/python: Move surface read/write methods to context.José Fonseca
2010-03-29gallivm: make sure that the alloca's are the very first thing in the functionZack Rusin
otherwise mem2reg can't put them in registers
2010-03-29Add a variable to the symbol table after processing the initializerIan Romanick
2010-03-29Trivial code cleanup in ir_dereference::is_lvalueIan Romanick
2010-03-29Add support for builtin radians() and degrees().Eric Anholt
2010-03-29Add definitions for 1.10 built-in uniforms for ff state.Eric Anholt
2010-03-29Don't let swizzles with duplicated components be considered as lvalues.Eric Anholt
Fixes swizzle2.frag.
2010-03-29Reject main() declarations with a non-void return value.Eric Anholt
Fixes main3.vert.
2010-03-29Reject variables marked with attribute in the fragment shader.Eric Anholt
Fixes attribute.frag.
2010-03-29Add the instruction for the parameter variable declarations of builtin funcs.Eric Anholt
Matches constructor setup, but I'm not really sure why we make the variable twice.
2010-03-29Implement dot() builtin.Eric Anholt
2010-03-29Implement exp2() and log2(), and make ir_unop_exp and ir_unop_log be base e.Eric Anholt
Making the base e functions IR operations is not a clear win. i965 doesn't support it, it doesn't look like r600 supports it, but r500 does. It should be easily supportable as a lowering pass, though.
2010-03-29Implement builtin length() function.Eric Anholt
2010-03-29Add sqrt() builtin as an IR operation.Eric Anholt
Following a discussion in #dri-devel, I think this makes more sense than implementing it as RSQ RCP CMP as Mesa did. The i965 has a hardware sqrt that should work, and AMD is suppposed to be able to implement it as RSQ RCP with an alternate floating point mode so that the 0.0 case is handled like we want.
2010-03-29Add builtin pow() function.Eric Anholt
2010-03-29Add support for builtin deprecated fs varyings.Eric Anholt
Fixes glsl-color.frag.
2010-03-29Implement some binary gentype builtin functions.Eric Anholt
2010-03-29Implement additional unary gentype builtins.Eric Anholt
2010-03-29Implement the first builtin function: exp().Eric Anholt
2010-03-29st/dri/sw: add drisw_api similarly to dri1_apiGeorge Sapountzis
I am pretty sure that this is in gallium spirit, so commit. Thanks to Chia-I for suggesting this.
2010-03-29ws/sw/dri: s/xm/dri_sw/George Sapountzis
2010-03-29docs: fix 7.7.1 release dateBrian Paul
(cherry picked from commit e6f5ca0fa3bff975f2acb3a825d77f095bc9f43e)
2010-03-29gallium: fix bogus depth/stencil format names (and channel descriptions)Roland Scheidegger
only the depth part is normalized, stencil part isn't.
2010-03-29gallium: add new texture formatsRoland Scheidegger
These are needed for DX10 and/or OGL3.3. This just adds the formats nothing handles them yet. PIPE_FORMAT_R1_UNORM can't be used currently as it requires special filter. Need to reclassify compressed formats at some point.
2010-03-29progs/glsl: improve the mouse drag/rotate code a littleBrian Paul
2010-03-29progs/glsl: let the mouse rotate the sceneRALOVICH, Kristóf
2010-03-29glsl: avoid using rcp in length() functionsBrian Paul
See prev commit for related info.
2010-03-29glsl: remove rcp from sqrt()Brian Paul
Per a patch from Marek Olšák, we can simply multiply the incoming value by 1/sqrt(x) instead of using rcp. We're keeping the x==0 check to avoid generating NaN for sqrt(0).
2010-03-29draw llvmpipe: lots of fixes for fetch/emitZack Rusin
the values passed are still not right, but the general scheme is looking good.
2010-03-29gallium/docs: minor fixesRoland Scheidegger
2010-03-29Revert "python: Temporarily disable python state tracker until transfers are ↵José Fonseca
done by contexts" This reverts commit 50a778661930ec7aa875a9c5235e9910143ec700.
2010-03-29i965g: util_format_is_compressed() -> util_format_is_s3tc().José Fonseca
2010-03-29mesa/st: util_format_is_compressed() -> util_format_is_s3tc().José Fonseca
2010-03-29svga: util_format_is_compressed() -> util_format_is_s3tc().José Fonseca
2010-03-29r300: UTIL_FORMAT_LAYOUT_COMPRESSED -> UTIL_FORMAT_LAYOUT_S3TC.José Fonseca
2010-03-29util: Distinguish between the different compression formats.José Fonseca
In particular, all current uses of util_format_is_compressed() actually mean s3tc.
2010-03-29softpipe: Map GS constants, too.Michal Krol
2010-03-29r300g: print configurable debugging info on non-debug buildsMarek Olšák
2010-03-28Generate more correctly diagnostics from some invalid initializersIan Romanick