summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-08-16 18:16:32 +0100
committermichal <michal@michal-laptop.(none)>2007-08-16 18:17:07 +0100
commita279b221bf9e64349b722449443d25db45f5a6df (patch)
treea1f23612d03cc995b9c0f15405cde30bbd99c1b3 /src/mesa
parent3fc926f3740da9ec27853d158243055f3cb43d43 (diff)
Cosmetic changes.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c
index 2c8deac034..1de80eb734 100644
--- a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c
+++ b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c
@@ -513,6 +513,7 @@ tgsi_mesa_compile_fp_program(
{
GLuint i, ti, count;
struct tgsi_header *header;
+ struct tgsi_processor *processor;
struct tgsi_full_declaration fulldecl;
struct tgsi_full_instruction fullinst;
struct tgsi_full_dst_register *fulldst;
@@ -526,7 +527,10 @@ tgsi_mesa_compile_fp_program(
header = (struct tgsi_header *) &tokens[1];
*header = tgsi_build_header();
- ti = 2;
+ processor = (struct tgsi_processor *) &tokens[2];
+ *processor = tgsi_build_processor( TGSI_PROCESSOR_FRAGMENT, header );
+
+ ti = 3;
reads_wpos = program->Base.InputsRead & (1 << FRAG_ATTRIB_WPOS);
inputs_read = program->Base.InputsRead | (1 << FRAG_ATTRIB_WPOS);
@@ -645,10 +649,9 @@ tgsi_mesa_compile_fp_program(
TGSI_PROCESSOR_FRAGMENT ) ) {
assert( i == program->Base.NumInstructions - 1 );
- if (TGSI_DEBUG)
- tgsi_dump(
- tokens,
- 0/*TGSI_DUMP_VERBOSE | TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT*/ );
+ if( TGSI_DEBUG ) {
+ tgsi_dump( tokens, 0 );
+ }
break;
}
@@ -668,7 +671,7 @@ tgsi_mesa_compile_vp_program(
struct tgsi_token *tokens,
GLuint maxTokens )
{
- GLuint ii, ti;
+ GLuint i, ti;
struct tgsi_header *header;
struct tgsi_processor *processor;
struct tgsi_full_instruction fullinst;
@@ -684,16 +687,18 @@ tgsi_mesa_compile_vp_program(
ti = 3;
- for( ii = 0; ii < program->Base.NumInstructions; ii++ ) {
+ for( i = 0; i < program->Base.NumInstructions; i++ ) {
if( compile_instruction(
- &program->Base.Instructions[ii],
+ &program->Base.Instructions[i],
&fullinst,
inputs_read,
0,
TGSI_PROCESSOR_VERTEX ) ) {
- assert( ii == program->Base.NumInstructions - 1 );
- if (TGSI_DEBUG)
- tgsi_dump( tokens, TGSI_DUMP_NO_IGNORED | TGSI_DUMP_NO_DEFAULT );
+ assert( i == program->Base.NumInstructions - 1 );
+
+ if( TGSI_DEBUG ) {
+ tgsi_dump( tokens, 0 );
+ }
break;
}