tgsi: Document LOOP/ENDLOOP instruction operation.

This commit is contained in:
Michal Krol 2009-07-30 10:12:09 +02:00
parent 3e2b6a2049
commit b724dd28e2
1 changed files with 18 additions and 2 deletions

View File

@ -667,7 +667,16 @@ TGSI Instruction Specification
1.9.8 LOOP - Loop
TBD
dst.x = floor(src.x)
dst.y = floor(src.y)
dst.z = floor(src.z)
if (dst.y <= 0)
pc = [matching ENDLOOP] + 1
endif
Note: The destination must be a loop register.
The source must be a constant register.
1.9.9 REP - Repeat
@ -687,7 +696,14 @@ TGSI Instruction Specification
1.9.12 ENDLOOP - End Loop
TBD
dst.x = dst.x + dst.z
dst.y = dst.y - 1.0
if (dst.y > 0)
pc = [matching LOOP instruction] + 1
endif
Note: The destination must be a loop register.
1.9.13 ENDREP - End Repeat