summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-02-05 13:37:57 -0800
committerRoland Scheidegger <[email protected]>2013-02-08 18:54:40 -0800
commit614982d320985c04e247293b54b66d7df5c19004 (patch)
tree53a17cb7593ba82d1140bd218a7f192606cf332a /src/gallium/docs/source
parent0a8043bb766f9c38af559438b646c3659614b103 (diff)
gallivm: fix up size queries for dx10 sviewinfo opcode
Need to calculate the number of mip levels (if it would be worthwile could store it in dynamic state). While here, the query code also used chan 2 for the lod value. This worked with mesa state tracker but it seems safer to use chan 0. Still passes piglit textureSize (with some handwaving), though the non-GL parts are (largely) untested. v2: clarify and expect the sviewinfo opcode to return ints, not floats, just like the OpenGL textureSize (dx10 supports dst modifiers with resinfo). Also simplify some code. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/docs/source')
-rw-r--r--src/gallium/docs/source/tgsi.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
index 5f03f324535..31b679621da 100644
--- a/src/gallium/docs/source/tgsi.rst
+++ b/src/gallium/docs/source/tgsi.rst
@@ -1444,7 +1444,7 @@ instructions. If in doubt double check Direct3D documentation.
.. opcode:: SVIEWINFO - query the dimensions of a given sampler view.
dst receives width, height, depth or array size and
- number of mipmap levels. The dst can have a writemask
+ number of mipmap levels as int4. The dst can have a writemask
which will specify what info is the caller interested
in.
SVIEWINFO dst, src_mip_level, sampler_view