diff options
author | Ilia Mirkin <[email protected]> | 2017-01-01 23:02:06 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-01-16 21:13:08 -0500 |
commit | 1393999541f3956156bf227209ecbf6d814ffc8f (patch) | |
tree | 2064061cc57874727f5e6fa2e73b34c9de94f08d /src/gallium/docs/source/tgsi.rst | |
parent | 376316e963b6636bb3c3900b3918a197c5e632aa (diff) |
gallium: add FBFETCH opcode to retrieve the current sample value
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/docs/source/tgsi.rst')
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 3e2d0e9fac2..b981278821c 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -2570,6 +2570,19 @@ Resource Access Opcodes image, while .w will contain the number of samples for multi-sampled images. +.. opcode:: FBFETCH - Load data from framebuffer + + Syntax: ``FBFETCH dst, output`` + + Example: ``FBFETCH TEMP[0], OUT[0]`` + + This is only valid on ``COLOR`` semantic outputs. Returns the color + of the current position in the framebuffer from before this fragment + shader invocation. May return the same value from multiple calls for + a particular output within a single invocation. Note that result may + be undefined if a fragment is drawn multiple times without a blend + barrier in between. + .. _threadsyncopcodes: |