summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-11-04 17:25:16 -0700
committerVinson Lee <[email protected]>2010-11-04 17:25:16 -0700
commiteba2ad6de2e4310521befce6aa10e954905af329 (patch)
tree064cd555d11baddc3806e304f7f6ede4fa340fa6 /src
parentc8f1687ce70c3a2e0de7a7d50e1619cb4cf8cc50 (diff)
r300/compiler: Move declaration before code.
Fixes this GCC warning with linux-x86 build. radeon_dataflow.c: In function 'get_readers_normal_read_callback': radeon_dataflow.c:472: warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c b/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c
index 885e227e794..fd94194dc34 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c
@@ -465,15 +465,16 @@ static void get_readers_normal_read_callback(
{
struct get_readers_callback_data * d = userdata;
unsigned int read_mask;
+ unsigned int shared_mask;
if (src->RelAddr)
d->ReaderData->Abort = 1;
- unsigned int shared_mask = rc_src_reads_dst_mask(src->File, src->Index,
- src->Swizzle,
- d->ReaderData->Writer->U.I.DstReg.File,
- d->ReaderData->Writer->U.I.DstReg.Index,
- d->AliveWriteMask);
+ shared_mask = rc_src_reads_dst_mask(src->File, src->Index,
+ src->Swizzle,
+ d->ReaderData->Writer->U.I.DstReg.File,
+ d->ReaderData->Writer->U.I.DstReg.Index,
+ d->AliveWriteMask);
if (shared_mask == RC_MASK_NONE)
return;