Age | Commit message (Collapse) | Author |
|
Create separate subclasses of ir_dereference for variable, array, and
record dereferences. As a side effect, array and record dereferences
no longer point to ir_variable objects directly. Instead they each
point to an ir_dereference_variable object.
This is the first of several steps in the refactoring process. The
intention is that ir_dereference will eventually become an abstract
base class.
|
|
|
|
Previously the list of function call parameters was stored as a
circular list in ast_expression::subexpressions[1]. They are now
stored as a regular list in ast_expression::expressions.
|
|
Also, change the name of the method to generate_constructor.
|
|
|
|
|
|
This causes the following tests to pass:
glslparsertest/shaders/function10.frag
|
|
Fixes constructor-09.glsl and CorrectParse2.frag.
|
|
|
|
|
|
process_call
These will be used in the functions that implement calls to array constructors.
|
|
|
|
This is the first baby step towards getting array constructors working.
|
|
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
|
|
All of the scalar, vector, and matrix constructors *except* "from
bool" constructors should be handled. Array and structure
constructors are also not yet handled.
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
|
|
Right now, reject constructors for samplers because the are illegal.
|
|
|
|
This function will be used for matching some types of constructors as well.
|
|
|