mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
fix indentation
This commit is contained in:
parent
738c9a073f
commit
5d40169436
1 changed files with 14 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue