summaryrefslogtreecommitdiff
path: root/ir.cpp
AgeCommit message (Collapse)Author
2010-03-26Set variables with the sampler base type to read only.Eric Anholt
Fixes increment3.frag.
2010-03-26Add constructors for immediate hir constants.Eric Anholt
This will make ast_to_hir for inc/dec easier.
2010-03-26Add glsl_type::components to query total number of components in a typeIan Romanick
2010-03-26Make glsl_*_type glsl_type class static dataIan Romanick
2010-03-26Move swizzles out of ir_dereference and into their own class.Kenneth Graunke
Also turn generate_swizzle into a static "create" method of the new class; we'll want to use it for the IR reader as well. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-26Add new abstract ir_rvalue class; rework accordingly.Kenneth Graunke
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-26Replace "mode" type tag with virtual as_foo() downcasting functions.Kenneth Graunke
These should work well even in a non-flat IR hierarchy. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-25Add dereference constructor for array element dereferencesIan Romanick
This should have gone in before the previous commit.
2010-03-25Fix matrix dimensioningIan Romanick
Newb GL mistake: matrices in GL are column-major. This means that vector_elements is the number of rows. Making these changes causes matrix-08.glsl to pass.
2010-03-24Add method to set the swizzle of an ir_dereferenceIan Romanick
2010-03-23ir_function constructor now takes the function name as a parameterIan Romanick
2010-03-23Set, and require, a return type for function signaturesIan Romanick
2010-03-11Add ir_call call to represent function calls.Ian Romanick
2010-03-11Fix broken constructor of ir_instruction base classIan Romanick
Make the constructor inline-able, and don't try to initialize it as a simple_node. It hasn't been derived from simple_node in a long time.
2010-03-10ir_variable: Initialize all attribute bits to reasonable defaultsIan Romanick
This prevents variables from randomly having their 'invariant' or 'read_only' bits set, for example.
2010-03-08Conver IR structures to use exec_list instead of simple_nodeIan Romanick
2010-02-22Rename .cc files to .cppIan Romanick