summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-03-31Add some variable declaration qualifier testsIan Romanick
2010-03-31Fix comment bug and printf bug in previous commitIan Romanick
2010-03-31Require that 'uniform' and 'varying' variables be declared at global scopeIan Romanick
This causes the following tests to pass: glslparsertest/shaders/uniform.frag glslparsertest/shaders/varying.frag
2010-03-31Slightly refector checks for declarations that must be at global scopeIan Romanick
2010-03-31Implement logical operators.Eric Anholt
Fixes parser9.frag.
2010-03-31Test that variable names don't use the reserved gl_ prefix.Eric Anholt
Fixes identifier2.frag.
2010-03-30Test that discard only appears in the fragment shader.Eric Anholt
Fixes fragmentOnly4.vert.
2010-03-30Test that main doesn't take any parameters.Eric Anholt
Fixes main2.vert.
2010-03-30Test that a non-void function returns a value.Eric Anholt
2010-03-30Test that a void function doesn't return a value.Eric Anholt
Fixes function1.frag.
2010-03-30Fix unused variable warning.Eric Anholt
2010-03-30Forbid array comparisons in GLSL 1.10Ian Romanick
This causes the following tests to pass: glslparsertest/shaders/array3.frag
2010-03-30Begin handling array declarationsIan Romanick
This causes the following tests to pass: glslparsertest/shaders/array4.frag glslparsertest/shaders/array5.frag This causes the following tests to fail. These shaders were previously failing to compile, but they were all failing for the wrong reasons. glslparsertest/shaders/array3.frag
2010-03-30Implement array type handlingIan Romanick
Since all glsl_type objects are flyweights, support is added to track all known array types. This accounts for most of the changes.
2010-03-30Add proper wrappers so that C++ code can use hash_table typeIan Romanick
2010-03-30Initial bits of constant expression evaluatorIan Romanick
Currently only works for constants. The rest will be added later.
2010-03-30Add some array declaration testsIan Romanick
2010-03-29Arrays are not allowed as vertex shader inputs in GLSL 1.30 eitherIan Romanick
2010-03-29Add several tests for vertex shader attributesIan Romanick
2010-03-29Add some checking for vertex shader inputs / attributesIan Romanick
This causes the following tests to pass: glslparsertest/shaders/attribute.vert glslparsertest/shaders/attribute1.vert glslparsertest/shaders/attribute2.vert
2010-03-29Add parser support for texture rectangle typesIan Romanick
2010-03-29Use call-by-reference for apply_implicit_conversionIan Romanick
I'm not sure if this is a win or not. It makes the code in apply_implicit_conversion more clear, but it obscures the fact that it may change the pointers.
2010-03-29Apply implicit conversions to ?: operatorIan Romanick
2010-03-29Apply implicit conversions to equality operatorsIan Romanick
2010-03-29Apply implicit conversions to relational operatorsIan Romanick
2010-03-29Apply implicit conversions to arithmetic operatorsIan Romanick
2010-03-29Add glsl_type::is_array and glsl_type::is_float queriesIan Romanick
2010-03-29Allow single-component constructorsIan Romanick
This causes the following tests to pass: glslparsertest/shaders/CorrectVersion.V110.frag shaders/glsl-vs-sqrt-zero.frag shaders/glsl-vs-sqrt-zero.vert This causes the following tests to fail. These shaders were previously failing to compile, but they were all failing for the wrong reasons. glslparsertest/shaders/attribute1.vert glslparsertest/shaders/attribute2.vert glslparsertest/shaders/main2.vert
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-29Add several simple if-statement testsIan Romanick
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