projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc09dc2
)
r600g: Move declaration before code.
author
Vinson Lee
<vlee@vmware.com>
Tue, 27 Jul 2010 22:33:45 +0000
(15:33 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 27 Jul 2010 22:33:45 +0000
(15:33 -0700)
Fixes SCons build.
src/gallium/drivers/r600/r600_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_shader.c
b/src/gallium/drivers/r600/r600_shader.c
index dcedf56c110936a416682d4f24d8d5f25b8b029d..17e9c14d6b22b8a9e4b9d4f2ee67f0705e703e87 100644
(file)
--- a/
src/gallium/drivers/r600/r600_shader.c
+++ b/
src/gallium/drivers/r600/r600_shader.c
@@
-651,6
+651,9
@@
static int tgsi_lit(struct r600_shader_ctx *ctx)
if (inst->Dst[0].Register.WriteMask & (1 << 2))
{
+ int chan;
+ int sel;
+
/* dst.z = log(src.y) */
memset(&alu, 0, sizeof(struct r600_bc_alu));
alu.inst = V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_LOG_CLAMPED;
@@
-665,8
+668,8
@@
static int tgsi_lit(struct r600_shader_ctx *ctx)
if (r)
return r;
-
int
chan = alu.dst.chan;
-
int
sel = alu.dst.sel;
+ chan = alu.dst.chan;
+ sel = alu.dst.sel;
/* tmp.x = amd MUL_LIT(src.w, dst.z, src.x ) */
memset(&alu, 0, sizeof(struct r600_bc_alu));