projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b619b
)
ir_to_mesa: Don't allocate temps for swizzles.
author
Eric Anholt
<eric@anholt.net>
Thu, 3 Jun 2010 17:13:18 +0000
(10:13 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 24 Jun 2010 22:05:21 +0000
(15:05 -0700)
We do them in place by actually, you know, swizzling.
ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/ir_to_mesa.cpp
b/ir_to_mesa.cpp
index 56815ac8e1ae445bd454d8544dbbf57c98a06e4e..53b7337d64b6a841142d290b43e43e5a1fdfa4fe 100644
(file)
--- a/
ir_to_mesa.cpp
+++ b/
ir_to_mesa.cpp
@@
-669,9
+669,8
@@
ir_to_mesa_visitor::visit(ir_swizzle *ir)
*/
ir->val->accept(this);
- assert(this->result.file != PROGRAM_UNDEFINED);
-
- src_reg = this->get_temp(4);
+ src_reg = this->result;
+ assert(src_reg.file != PROGRAM_UNDEFINED);
for (i = 0; i < 4; i++) {
if (i < ir->type->vector_elements) {