Ian Romanick
d10fe19495
Simplified constructor for identifier expressions
16 년 전
Ian Romanick
adfb0cd740
IR variable: Initial work to support GLSL built-in variables
16 년 전
Ian Romanick
f52888fac0
Include cstdlib to be sure size_t is available
16 년 전
Ian Romanick
d949a9afb0
Move top-level AST to HIR conversion to _mesa_ast_to_hir
16 년 전
Ian Romanick
8e6cd3bf54
Require the shader target be specified to the driver program
16 년 전
Ian Romanick
1c4156ffac
Use ir_print_visitor to dump IR tree
16 년 전
Ian Romanick
02ae68f496
Fix typeo in gl_FogParameters.scale (was scalre)
16 년 전
Ian Romanick
0b67823462
AST to IR: Mark 'varying' in a vertex shader as 'out'
16 년 전
Ian Romanick
654c057257
ir_variable: Initialize all attribute bits to reasonable defaults
This prevents variables from randomly having their 'invariant' or
'read_only' bits set, for example.
16 년 전
Ian Romanick
fe10250355
IR print visitor: Add some support for printing types and constants
16 년 전
Ian Romanick
6044ae79a0
IR print visitor: Print assignments
16 년 전
Ian Romanick
6652af36fe
Add assignment side-effect to the instruction stream
The actual assignment is a side-effect of the assignment expression.
Add it to the instruction stream and return the LHS of the assignment
as its rvalue.
16 년 전
Ian Romanick
78b51b0fdd
IR visitor: Add initial version of ir_visitor classes
The ir_visitor class is the abstract base class for all visitors.
ir_print_visitor contains the beginnings of a concrete visitor class
that will print out an IR sequence in a Lisp / Scheme-like syntax.
16 년 전
Ian Romanick
fce1150156
Convert is_glsl_type_matrix to glsl_type::is_matrix
16 년 전
Ian Romanick
a2dd22fb19
Convert is_glsl_type_vector to glsl_type::is_vector
16 년 전
Ian Romanick
cb36f8aaee
Convert is_glsl_type_scalar to glsl_type::is_scalar
16 년 전
Ian Romanick
eccf0bf5f2
Make glsl_type a class
Among other benefits, this cleans up a the hackery invovled in
initializing the union field in builtin_types.h.
16 년 전
Ian Romanick
3a9e989628
Remove unused function
16 년 전
Ian Romanick
0044e7edce
Conver IR structures to use exec_list instead of simple_node
16 년 전
Ian Romanick
7e4ce71923
Add yet-another linked list type
The use of macros to access existing linked list type makes it
unsuitable for its current use as a base class. Since this type and
the accompanying macros are used all over the place in Mesa, we can't
really change them.
16 년 전
Ian Romanick
61484ba188
Remove prototypes for *_to_hir functions that no longer exist
16 년 전
Ian Romanick
1e2e58c1f6
Set C++ indent too.
16 년 전
Ian Romanick
18238de6c3
Make AST->HIR conversion a method of ast_node, re-enable
16 년 전
Ian Romanick
d59673c9de
autoconf for the ...
16 년 전
Ian Romanick
e41a1cd4d5
Replace tacky wrapper macros with tacky in-line type-casts
16 년 전
Ian Romanick
168890ce1b
Convert to new interfaces so that it will compile
Convert TRUE and FALSE to true and false. Convert
_mesa_ast_get_location to ast_node::get_location.
16 년 전
Ian Romanick
88349b22ca
Add ast_expression_bin subclass of ast_expression
The ast_expression_bin subclass is used for all binary expressions
such as addition, subtraction, and comparisons. Several other
subclasses are soon to follow.
16 년 전
Ian Romanick
89227f6ce4
Ignore all build products
16 년 전
Ian Romanick
d5f4f09e76
Rename .cc files to .cpp
16 년 전
Ian Romanick
53d2774ee3
Initialize the node structure embedded in the ast_node
16 년 전
Ian Romanick
a87ac255cf
Initial commit. lol
16 년 전