projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa0b03
)
ir_to_mesa: Make the first temp index we use 1 to show off bugs.
author
Eric Anholt
<eric@anholt.net>
Tue, 4 May 2010 18:51:41 +0000
(11:51 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 24 Jun 2010 22:05:19 +0000
(15:05 -0700)
Regs aren't allocated at the right times yet, so we see TEMP[0] a lot.
ir_to_mesa.cpp
patch
|
blob
|
history
ir_to_mesa.h
patch
|
blob
|
history
diff --git
a/ir_to_mesa.cpp
b/ir_to_mesa.cpp
index fc0649c60eeff29902e20a660f1486aa07f990dc..f36dea5f314b9f882a930506a9a54522c849a70f 100644
(file)
--- a/
ir_to_mesa.cpp
+++ b/
ir_to_mesa.cpp
@@
-496,6
+496,13
@@
ir_to_mesa_visitor::visit(ir_if *ir)
exit(1);
}
+ir_to_mesa_visitor::ir_to_mesa_visitor()
+{
+ result = NULL;
+ next_temp = 1;
+ next_constant = 0;
+}
+
static struct prog_src_register
mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg reg)
{
diff --git
a/ir_to_mesa.h
b/ir_to_mesa.h
index d9482264d464e8b9793e312071276f8a46cf8979..cef27f8b79cd17bdc376c9db3ac88c59c4a91078 100644
(file)
--- a/
ir_to_mesa.h
+++ b/
ir_to_mesa.h
@@
-92,12
+92,7
@@
public:
class ir_to_mesa_visitor : public ir_visitor {
public:
- ir_to_mesa_visitor()
- {
- result = NULL;
- next_temp = 0;
- next_constant = 0;
- }
+ ir_to_mesa_visitor();
int next_temp;
int next_constant;