summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-05-29 11:01:05 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-06-06 20:49:28 -0400
commit30684b50d71d4d5356b671293af4b9f3fd6161ff (patch)
tree8cb3a0c87da9ba19e79d0ec02055c469fc3bce48 /src/gallium/docs
parent5189f0243a3dd8698c645bbe762b8a1a3caaf1a9 (diff)
downloadexternal_mesa3d-30684b50d71d4d5356b671293af4b9f3fd6161ff.zip
external_mesa3d-30684b50d71d4d5356b671293af4b9f3fd6161ff.tar.gz
external_mesa3d-30684b50d71d4d5356b671293af4b9f3fd6161ff.tar.bz2
gallium: add VOTE_* opcodes to implement GL_ARB_shader_group_vote
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/tgsi.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index ab12490..bf09406 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -2557,6 +2557,23 @@ only be used with 32-bit integer image formats.
resource[offset] = (dst_x > src_x ? dst_x : src_x)
+.. _voteopcodes:
+
+Vote opcodes
+^^^^^^^^^^^^
+
+These opcodes compare the given value across the shader invocations
+running in the current SIMD group. The details of exactly which
+invocations get compared are implementation-defined, and it would be a
+correct implementation to only ever consider the current thread's
+value. (i.e. SIMD group of 1). The argument is treated as a boolean.
+
+.. opcode:: VOTE_ANY - Value is set in any of the current invocations
+
+.. opcode:: VOTE_ALL - Value is set in all of the current invocations
+
+.. opcode:: VOTE_EQ - Value is the same in all of the current invocations
+
Explanation of symbols used
------------------------------