aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/docs
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-08-25 13:03:19 +0100
committerDave Airlie <[email protected]>2011-08-26 11:04:15 +0100
commit6fb12bf031fdceadebc8a3d7b7756bc822fbf6e4 (patch)
treeb84fdbb06ab29463d6219e0f414ce29cbb8003f5 /src/gallium/docs
parenta2c467c0548b658a92af11c063520bc4d027895e (diff)
tgsi: update tgsi.rst for TXQ
add some info on the TXQ opcode. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r--src/gallium/docs/source/tgsi.rst16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 4debcc6ecc4..039cb1c03d5 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -1031,9 +1031,21 @@ XXX so let's discuss it, yeah?
TBD
-.. opcode:: TXQ - Texture Size Query
+.. opcode:: TXQ - Texture Size Query (as per NV_gpu_program4)
+ retrieve the dimensions of the texture
+ depending on the target. For 1D (width), 2D/RECT/CUBE
+ (width, height), 3D (width, height, depth),
+ 1D array (width, layers), 2D array (width, height, layers)
- TBD
+.. math::
+
+ lod = src0
+
+ dst.x = texture_width(unit, lod)
+
+ dst.y = texture_height(unit, lod)
+
+ dst.z = texture_depth(unit, lod)
.. opcode:: CONT - Continue