summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-04-07Eat whitespace while in the PP stateIan Romanick
2010-04-07Partially fix comment handling in preprocessor directives.Ian Romanick
Multi-line /* */ comments are still broken. I think this will wait to be fixed until we have a real preprocessor.
2010-04-07Add support for bool to ir_equal and ir_nequal constant handlingIan Romanick
2010-04-07Add gl_ClipDistance in fragment shaderIan Romanick
2010-04-07Generate correct IR for do-while loopsIan Romanick
Previously the same code was generated for a while loop and a do-while loop. This pulls the code that generates the conditional break into a separate method. This method is called either at the beginning or the end depending on the loop type. Reported-by: Kenneth Graunke <kenneth@whitecape.org>
2010-04-07Process ast_jump_statement into ir_loop_jumpIan Romanick
Specifically, handle 'break' and 'continue' inside loops. This causes the following tests to pass: glslparsertest/shaders/break.frag glslparsertest/shaders/continue.frag
2010-04-07Add dynamic cast for ir_loopIan Romanick
2010-04-07Begin tracking the nesting of loops and switch-statementsIan Romanick
2010-04-07Use switch based on mode in ast_jump_statement::hirIan Romanick
2010-04-07Add some newlines when printing ir_loop instructionsIan Romanick
2010-04-07Process ast_iteration_statement into ir_loopIan Romanick
This causes the following tests to pass: glslparsertest/shaders/dowhile.frag glslparsertest/shaders/while.frag glslparsertest/shaders/while1.frag glslparsertest/shaders/while2.frag
2010-04-07Add ir_loop_jump to represent 'break' and 'continue' in loopsIan Romanick
2010-04-07Add ir_loop to represent loopsIan Romanick
This touches a lot of files because everything derived from ir_visitor has to be updated. This is the primary disadvantage of the visitor pattern.
2010-04-06Add some linebreaks in the ir_print_visitor of if statement bodies.Eric Anholt
2010-04-06Make constant folding descend into if statements.Eric Anholt
2010-04-06Descend down the tree in more locations in constant folding.Eric Anholt
2010-04-06Perform constant folding on array indices.Eric Anholt
Replaces a constant var deref with a constant value in CorrectParse1.frag.
2010-04-06Add float/int conversion to ir_constant_expression.cpp.Eric Anholt
Gives CorrectParse2.frag one more constant folding.
2010-04-06Handle constant expressions using derefs of const values.Eric Anholt
Fixes CorrectParse1.frag and makes for a ton of folding in CorrectParse2.frag.
2010-04-06Fold constant expressions in if conditionals.Eric Anholt
Fixes up 3 more expressions in CorrectParse2.frag.
2010-04-06Add support for =, != to ir_constant_expresion.cppEric Anholt
This results in constant folding of one more expression in CorrectParse2.frag.
2010-04-06Add ir_constant_expression.cpp support for <, >, <=, >=.Eric Anholt
This results in folding one more constant expression in CorrectParse2.frag.
2010-04-06Add a constant folding optimization pass.Eric Anholt
2010-04-05Add definition of gl_ClipDistance[]Eric Anholt
2010-04-05Set lower bound on size implied by whole-array assignmentIan Romanick
When an unsized array is accessed with a constant extension index this sets a lower bound on the allowable sizes. When the unsized array gets a size set due to a whole-array assignment, this size must be at least as large as the implied lower bound. This causes the following tests to pass: glslparsertest/glsl2/array-16.vert
2010-04-05Allow dereference of vectors and matrices with []Ian Romanick
This causes the following tests to pass: glslparsertest/glsl2/matrix-11.vert glslparsertest/glsl2/matrix-12.vert glslparsertest/shaders/CorrectParse2.vert glslparsertest/shaders/CorrectSwizzle2.frag
2010-04-05Set correct type for ir_dereference of a matrix or a vectorIan Romanick
2010-04-02Propagate sizes when assigning a whole array to an unsized arrayIan Romanick
2010-04-02Track whether whole-arrays are assignableIan Romanick
In GLSL 1.10 this was not allowed, but in GLSL 1.20 and later it is. This causes the following tests to pass: glslparsertest/glsl2/array-09.vert glslparsertest/glsl2/array-13.vert
2010-04-02Whole structures are assignableIan Romanick
Whole arrays are assignable in GLSL 1.20 and later, but it's not clear how to handle that within the IR because the IR is supposed to be shading language version agnostic.
2010-04-02Use glsl_type::element_type to get the type of array elementsIan Romanick
2010-04-02Ensure that 'in' and 'inout' formal parameters are valid lvaluesIan Romanick
This causes the following tests to pass: glslparsertest/shaders/function10.frag
2010-04-02Additional void parameter checksIan Romanick
If there is a void parameter it must not have a name, and it must be the only parameter.
2010-04-02Require that function formal parameters have namesIan Romanick
2010-04-02Make built-in gl_TexCoord available in vertex and fragment shadersIan Romanick
2010-04-02Fix matching of integer function parametersIan Romanick
This causes the following tests to pass: glslparsertest/shaders/function10.frag
2010-04-02Add bool/int conversion as IR operations.Eric Anholt
Fixes constructor-09.glsl and CorrectParse2.frag.
2010-04-02Add conversion of bool to float as an IR operation to match int to float.Eric Anholt
2010-04-02Add PASS / FAIL annotations to tests missing them.Eric Anholt
This tricked my import of the tests into piglit.
2010-04-02Test that invalid quailfiers aren't used on variables in GLSL 1.10.Eric Anholt
2010-04-02Allow array dereferences to be considered as lvalues.Eric Anholt
Fixes glsl-vs-arrays.vert and glsl-vs-mov-after-deref.vert. Regresses parser3.frag which was failing for the wrong reason.
2010-04-02Test for the type being different in parameter_lists_match.Eric Anholt
Fixes CorrectFuncOverload.frag.
2010-04-02Add some more operations to ir_constant_expression.cpp.Eric Anholt
2010-04-02Make ir_constant_expression.cpp support multi-component types.Eric Anholt
2010-04-02Simplify ir_constant_expression.cpp by factoring operand computation out.Eric Anholt
2010-04-02Reject non-float varyings.Eric Anholt
Fixes varying2.frag.
2010-04-02Remove fake ir_binop_logic_not. I think you meant ir_unop_logic_not.Eric Anholt
2010-04-02Handle logic not in constant expression evaluation.Eric Anholt
2010-04-02Fix error handling of logic operators.Eric Anholt
They were always throwing a type error because type wasn't being set.
2010-04-02Emit errors for unfinished ast_to_hir expression operations.Eric Anholt