summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-05-06 11:17:47 -0700
committerEric Anholt <[email protected]>2010-06-24 15:05:20 -0700
commit8041bce333a48033975eb83d47ecc6bd7a91cd1d (patch)
tree562de4582beb3e79d4af7fb40f0b1c0d367f9afa
parent48e282d8a2dc7b3ef9f37efdae4618b25ef28628 (diff)
ir_to_mesa: Support gl_FragData[] output.
-rw-r--r--ir_to_mesa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp
index 40b7f65afbe..f8b37dd2028 100644
--- a/ir_to_mesa.cpp
+++ b/ir_to_mesa.cpp
@@ -465,8 +465,8 @@ ir_to_mesa_visitor::visit(ir_dereference_array *ir)
MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y),
MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X),
};
- ir_variable *var = ir->var->as_variable();
- ir_constant *index = ir->selector.array_index->constant_expression_value();
+ ir_variable *var = ir->variable_referenced();
+ ir_constant *index = ir->array_index->constant_expression_value();
int file = PROGRAM_UNDEFINED;
int base_index = 0;