summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-09-20 17:58:45 -0700
committerKenneth Graunke <[email protected]>2012-04-02 14:15:46 -0700
commitf75c2d53146ea14f8dfedcc5b7a4704278ba0792 (patch)
tree512d5cda78998a6b5b80d3f6ec90ba92dcb47b8c /src/mesa
parent82065fa20ee3f2880a070f1f4f75509b910cedde (diff)
glsl: Demote 'type' from ir_instruction to ir_rvalue and ir_variable.
Variables have types, expression trees have types, but statements don't. Rather than have a nonsensical field that stays NULL in the base class, just move it to where it makes sense. Fix up a few places that lazily used ir_instruction even though they actually knew the particular subclass. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index a672ee624b2..00524288f6d 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -1415,7 +1415,7 @@ fs_visitor::visit(ir_constant *ir)
}
} else if (ir->type->is_record()) {
foreach_list(node, &ir->components) {
- ir_instruction *const field = (ir_instruction *) node;
+ ir_constant *const field = (ir_constant *) node;
const unsigned size = type_size(field->type);
field->accept(this);