projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e282d
)
ir_to_mesa: Support gl_FragData[] output.
author
Eric Anholt
<eric@anholt.net>
Thu, 6 May 2010 18:17:47 +0000
(11:17 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 24 Jun 2010 22:05:20 +0000
(15:05 -0700)
ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/ir_to_mesa.cpp
b/ir_to_mesa.cpp
index 40b7f65afbeb101dda2ba8305170c36b4d14b993..f8b37dd202859a5c39cb76b74f217143dd6ea816 100644
(file)
--- 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->var
iable_referenced
();
+ ir_constant *index = ir->array_index->constant_expression_value();
int file = PROGRAM_UNDEFINED;
int base_index = 0;