summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-09-10 21:37:23 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2015-09-13 18:24:01 -0400
commitd173c5e77d239618e9609788e3d23ac9180a58a5 (patch)
tree97926d5f4f69b65ba2d0531ffaac7ec7a7a49087 /src/gallium/docs
parentc4cf824658da283cf350fd6833d50dff9de4a1ad (diff)
downloadexternal_mesa3d-d173c5e77d239618e9609788e3d23ac9180a58a5.zip
external_mesa3d-d173c5e77d239618e9609788e3d23ac9180a58a5.tar.gz
external_mesa3d-d173c5e77d239618e9609788e3d23ac9180a58a5.tar.bz2
tgsi: add a TXQS opcode to retrieve the number of texture samples
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/tgsi.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 314c9ca..314fe1b 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -960,7 +960,6 @@ XXX doesn't look like most of the opcodes really belong here.
For components which don't return a resource dimension, their value
is undefined.
-
.. math::
lod = src0.x
@@ -973,6 +972,17 @@ XXX doesn't look like most of the opcodes really belong here.
dst.w = texture\_levels(unit)
+
+.. opcode:: TXQS - Texture Samples Query
+
+ This retrieves the number of samples in the texture, and stores it
+ into the x component. The other components are undefined.
+
+.. math::
+
+ dst.x = texture\_samples(unit)
+
+
.. opcode:: TG4 - Texture Gather
As per ARB_texture_gather, gathers the four texels to be used in a bi-linear