Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glsl: add ir_emit_vertex and ir_end_primitive instruction types | Bryan Cain | 2013-08-01 | 1 | -0/+18 |
| | | | | | | | | | | | | | | These correspond to the EmitVertex and EndPrimitive functions in GLSL. v2 (Paul Berry <stereotype441@gmail.com>): Add stub implementations of new pure visitor functions to i965's vec4_visitor and fs_visitor classes. v3 (Paul Berry <stereotype441@gmail.com>): Rename classes to be more consistent with the names used in the GL spec. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> | ||||
* | glsl: Use ir_rvalue to represent generic error_type values. | Kenneth Graunke | 2012-04-02 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | Currently, ir_call can be used as either a statement (for void functions) or a value (for non-void functions). This is rather awkward, as it's the only class that can be used in both forms. A number of places use ir_call::get_error_instruction() to construct a generic value of error_type. If ir_call is to become a statement, it can no longer serve this purpose. Unfortunately, none of our classes are particularly well suited for this, and creating a new one would be rather aggrandizing. So, this patch introduces ir_rvalue::error_value(), a static method that creates an instance of the base class, ir_rvalue. This has the nice property that you can't accidentally try and access uninitialized fields (as it doesn't have any). The downside is that the base class is no longer abstract. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> | ||||
* | glsl2: Set a flag when visiting the assignee of an assignment | Ian Romanick | 2010-09-03 | 1 | -0/+1 |
| | |||||
* | glsl: Fix uninitialized member in ir_hierarchical_vistor constructor. | Vinson Lee | 2010-08-18 | 1 | -0/+1 |
| | | | | Class member base_ir was not initialized by the default constructor. | ||||
* | glsl2: Add a pass to convert mod(a, b) to b * fract(a/b). | Eric Anholt | 2010-07-01 | 1 | -6/+1 |
| | | | | This is used by the Mesa IR backend to implement mod, fixing glsl-fs-mod. | ||||
* | glsl2: Define new ir_discard instruction. | Kenneth Graunke | 2010-06-30 | 1 | -0/+16 |
| | |||||
* | glsl2: Move the compiler to the subdirectory it will live in in Mesa. | Eric Anholt | 2010-06-24 | 1 | -0/+284 |