projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e2b6a2
)
tgsi: Document LOOP/ENDLOOP instruction operation.
author
Michal Krol
<michal@vmware.com>
Thu, 30 Jul 2009 08:12:09 +0000
(10:12 +0200)
committer
Michal Krol
<michal@vmware.com>
Thu, 30 Jul 2009 08:14:17 +0000
(10:14 +0200)
src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
b/src/gallium/auxiliary/tgsi/tgsi-instruction-set.txt
index a3f4947c734f2aca96cac763dd70d7b0494b0612..5f88cc2acaca371caf34a4023ff255203e74a2ce 100644
(file)
--- 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