diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-12-13 22:11:25 -0500 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-01-08 15:10:33 -0500 |
commit | 90ba06618ef9fe22bb4be4604a233c9a3a0ea1f7 (patch) | |
tree | dffff09b7f9792c17e05d48ba1283b77ccb5d9d8 /src/gallium/docs | |
parent | ebfb5446c78cd3e9f3f3e92fef88e4b0645a34e8 (diff) | |
download | external_mesa3d-90ba06618ef9fe22bb4be4604a233c9a3a0ea1f7.zip external_mesa3d-90ba06618ef9fe22bb4be4604a233c9a3a0ea1f7.tar.gz external_mesa3d-90ba06618ef9fe22bb4be4604a233c9a3a0ea1f7.tar.bz2 |
gallium: add a RESQ opcode to query info about a resource
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index b6acc3f..7810a3e 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -2311,6 +2311,18 @@ Resource Access Opcodes texture arrays and 2D textures. address.w is always ignored. +.. opcode:: RESQ - Query information about a resource + + Syntax: ``RESQ dst, resource`` + + Example: ``RESQ TEMP[0], BUFFER[0]`` + + Returns information about the buffer or image resource. For buffer + resources, the size (in bytes) is returned in the x component. For + image resources, .xyz will contain the width/height/layers of the + image, while .w will contain the number of samples for multi-sampled + images. + .. _threadsyncopcodes: |