diff options
author | Dave Airlie <[email protected]> | 2014-02-11 13:26:08 +1000 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-04-07 01:06:18 -0400 |
commit | be5276ae7d24563301ae627b994f612069c32461 (patch) | |
tree | 5d54a4ffb578414643077a88c2a950b578eb9a75 /src/gallium/docs | |
parent | 5d0b3ec4ae4e468ee6d69bb6f036c06aae759dcc (diff) |
gallium: add support for LODQ opcodes.
This opcode provide support for GL_ARB_texture_query_lod,
Signed-off-by: Dave Airlie <[email protected]>
[imirkin: rebase, docs update]
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r-- | src/gallium/docs/source/screen.rst | 2 | ||||
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 09f809db9c8..943d8807826 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -191,6 +191,8 @@ The integer capabilities: * ``PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT``: Whether PIPE_TRANSFER_PERSISTENT and PIPE_TRANSFER_COHERENT are supported for buffers. +* ``PIPE_CAP_TEXTURE_QUERY_LOD``: Whether the ``LODQ`` instruction is + supported. .. _pipe_capf: diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 5a64e16cefa..d5325f4a935 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -1012,6 +1012,18 @@ XXX doesn't look like most of the opcodes really belong here. dst = texture\_gather (uint, coord, compare) +.. opcode:: LODQ - level of detail query + + Compute the LOD information that the texture pipe would use to access the + texture. The Y component contains the computed LOD lambda_prime. The X + component contains the LOD that will be accessed, based on min/max lod's + and mipmap filters. + +.. math:: + + coord = src0 + + dst.xy = lodq(uint, coord); Integer ISA ^^^^^^^^^^^^^^^^^^^^^^^^ |