diff options
author | Michal Krol <michal@vmware.com> | 2009-07-31 18:12:53 +0200 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-07-31 18:14:40 +0200 |
commit | cb90c43676c258419e4b617c908570891d3674cb (patch) | |
tree | bb4c581e9f4969bfc4c7ac163e0b8f1eee845846 /src/mesa/state_tracker/st_mesa_to_tgsi.c | |
parent | dc516d6e2afe7f157dbe5aad1288e5624b27e093 (diff) | |
download | external_mesa3d-cb90c43676c258419e4b617c908570891d3674cb.zip external_mesa3d-cb90c43676c258419e4b617c908570891d3674cb.tar.gz external_mesa3d-cb90c43676c258419e4b617c908570891d3674cb.tar.bz2 |
Rename TGSI LOOP instruction to better match theri usage.
The LOOP/ENDLOOP pair is renamed to BGNFOR/ENDFOR as its behaviour
is similar to a C language for-loop.
The BGNLOOP2/ENDLOOP2 pair is renamed to BGNLOOP/ENDLOOP as now
there is no name collision.
Diffstat (limited to 'src/mesa/state_tracker/st_mesa_to_tgsi.c')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index c8fb39d..dd7e40b 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -368,7 +368,7 @@ compile_instruction( fullinst->Instruction.Opcode = TGSI_OPCODE_ADD; break; case OPCODE_BGNLOOP: - fullinst->Instruction.Opcode = TGSI_OPCODE_BGNLOOP2; + fullinst->Instruction.Opcode = TGSI_OPCODE_BGNLOOP; fullinst->InstructionExtLabel.Label = inst->BranchTarget + preamble_size; break; case OPCODE_BGNSUB: @@ -426,7 +426,7 @@ compile_instruction( fullinst->Instruction.Opcode = TGSI_OPCODE_ENDIF; break; case OPCODE_ENDLOOP: - fullinst->Instruction.Opcode = TGSI_OPCODE_ENDLOOP2; + fullinst->Instruction.Opcode = TGSI_OPCODE_ENDLOOP; fullinst->InstructionExtLabel.Label = inst->BranchTarget + preamble_size; break; case OPCODE_ENDSUB: |