diff options
author | Michal Krol <[email protected]> | 2009-07-30 10:12:09 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-07-30 10:14:17 +0200 |
commit | b724dd28e24ec1c38af1082f5e16cd9a12d1653d (patch) | |
tree | 693b593319ddf454a7de74d755c23daa1237cff3 /src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt | |
parent | 3e2b6a204966b962c9881e90fe3f0b74cf84d8c4 (diff) |
tgsi: Document LOOP/ENDLOOP instruction operation.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt b/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt index a3f4947c734..5f88cc2acac 100644 --- a/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt +++ b/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt @@ -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 |