diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-08-10 14:38:39 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-08-10 14:38:39 +0000 |
commit | 5d4016943658756e60979057ec3dccf8f82033f0 (patch) | |
tree | 33bb3713e03909c7a14c5de6f45fdf72d92ae74c /src/mesa/shader | |
parent | 738c9a073f6108df0f13c47daa3f24878d2d26ec (diff) |
fix indentation
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/slang/slang_execute.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mesa/shader/slang/slang_execute.c b/src/mesa/shader/slang/slang_execute.c index 9e82ef580b..e45d2a4bc2 100644 --- a/src/mesa/shader/slang/slang_execute.c +++ b/src/mesa/shader/slang/slang_execute.c @@ -183,7 +183,7 @@ static void dump (const slang_assembly_file *file) int _slang_execute (const slang_assembly_file *file)
{
slang_machine mach;
-FILE *f;
+ FILE *f;
mach.ip = 0;
mach.sp = SLANG_MACHINE_STACK_SIZE;
@@ -197,22 +197,22 @@ FILE *f; static_assert(sizeof (GLuint) == 4);
static_assert(sizeof (GLuint *) == 4);
-dump (file);
+ dump (file);
-f = fopen ("~mesa-slang-assembly-execution.txt", "w");
+ f = fopen ("~mesa-slang-assembly-execution.txt", "w");
while (!mach.exit)
{
slang_assembly *a = file->code + mach.ip;
-if (f != NULL)
-{
-unsigned int i;
-dump_instruction (f, a, mach.ip);
-fprintf (f, "\t\tsp=%u bp=%u\n", mach.sp, mach.bp);
-for (i = mach.sp; i < SLANG_MACHINE_STACK_SIZE; i++)
-fprintf (f, "\t%.5u\t%6f\t%u\n", i, mach.stack._float[i], mach.stack._addr[i]);
-fflush (f);
-}
+ if (f != NULL)
+ {
+ unsigned int i;
+ dump_instruction (f, a, mach.ip);
+ fprintf (f, "\t\tsp=%u bp=%u\n", mach.sp, mach.bp);
+ for (i = mach.sp; i < SLANG_MACHINE_STACK_SIZE; i++)
+ fprintf (f, "\t%.5u\t%6f\t%u\n", i, mach.stack._float[i], mach.stack._addr[i]);
+ fflush (f);
+ }
mach.ip++;
switch (a->type)
@@ -341,8 +341,8 @@ fflush (f); }
}
-if (f != NULL)
-fclose (f);
+ if (f != NULL)
+ fclose (f);
return 0;
}
|