summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source/tgsi.rst
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-02-09 18:37:48 -0500
committerNicolai Hähnle <[email protected]>2017-03-31 07:56:26 +0200
commit94ec847cb00e7f5b7bc5a9d719d572cdc6affa44 (patch)
tree8c6f228459594ddeca1ec5e634b209da45c98790 /src/gallium/docs/source/tgsi.rst
parentd0c7f924a36f5a93c5a432baf3c653b9b07e006b (diff)
tgsi: add CLOCK opcode
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/docs/source/tgsi.rst')
-rw-r--r--src/gallium/docs/source/tgsi.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 9976875c7bd..05b06ce6f1e 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -1038,6 +1038,20 @@ XXX doesn't look like most of the opcodes really belong here.
dst.xy = lodq(uint, coord);
+.. opcode:: CLOCK - retrieve the current shader time
+
+ Invoking this instruction multiple times in the same shader should
+ cause monotonically increasing values to be returned. The values
+ are implicitly 64-bit, so if fewer than 64 bits of precision are
+ available, to provide expected wraparound semantics, the value
+ should be shifted up so that the most significant bit of the time
+ is the most significant bit of the 64-bit value.
+
+.. math::
+
+ dst.xy = clock()
+
+
Integer ISA
^^^^^^^^^^^^^^^^^^^^^^^^
These opcodes are used for integer operations.