diff options
author | Christoph Bumiller <[email protected]> | 2013-04-12 13:42:01 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-04-18 20:35:40 +0200 |
commit | 729abfd0f53c27ba58da95882bef985945933c65 (patch) | |
tree | 47623e71727be33fda952923809fb9b8391311ee /src/gallium/docs/source/screen.rst | |
parent | 246ff8f887e10a2828fb43104a06ba6f2505b74d (diff) |
st/mesa: optionally apply texture swizzle to border color v2
This is the only sane solution for nv50 and nvc0 (really, trust me),
but since on other hardware the border colour is tightly coupled with
texture state they'd have to undo the swizzle, so I've added a cap.
The dependency of update_sampler on the texture updates was
introduced to avoid doing the apply_depthmode to the swizzle twice.
v2: Moved swizzling helper to u_format.c, extended the CAP to
provide more accurate information.
Diffstat (limited to 'src/gallium/docs/source/screen.rst')
-rw-r--r-- | src/gallium/docs/source/screen.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 4b01d77322e..3ab7e9e6906 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -151,6 +151,17 @@ The integer capabilities: dedicated memory should return 1 and all software rasterizers should return 0. * ``PIPE_CAP_QUERY_PIPELINE_STATISTICS``: Whether PIPE_QUERY_PIPELINE_STATISTICS is supported. +* ``PIPE_CAP_TEXTURE_BORDER_COLOR_QUIRK``: Bitmask indicating whether special + considerations have to be given to the interaction between the border color + in the sampler object and the sampler view used with it. + If PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_R600 is set, the border color + may be affected in undefined ways for any kind of permutational swizzle + (any swizzle XYZW where X/Y/Z/W are not ZERO, ONE, or R/G/B/A respectively) + in the sampler view. + If PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_NV50 is set, the border color + state should be swizzled manually according to the swizzle in the sampler + view it is intended to be used with, or herein undefined results may occur + for permutational swizzles. .. _pipe_capf: |