From 94ec847cb00e7f5b7bc5a9d719d572cdc6affa44 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 9 Feb 2017 18:37:48 -0500 Subject: tgsi: add CLOCK opcode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ilia Mirkin Reviewed-by: Nicolai Hähnle Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/gallium/docs/source/tgsi.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gallium/docs/source') 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. -- cgit v1.2.3