diff options
author | Ilia Mirkin <[email protected]> | 2014-07-05 19:52:20 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-07-09 22:32:13 -0400 |
commit | 7c9161521a38bc52a69b1fd26d55d7666476ed57 (patch) | |
tree | d851e2c5347cbee56e0a30c2ba195ae55fc20f0a /src/gallium/docs | |
parent | ca5e15f40fb7902d1f00088fee8e613200393d69 (diff) |
gallium: add INTERP_* opcodes to support interpolateAt*
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/docs')
-rw-r--r-- | src/gallium/docs/source/tgsi.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index 5571b758f4b..8cbb3d8ab7d 100644 --- a/src/gallium/docs/source/tgsi.rst +++ b/src/gallium/docs/source/tgsi.rst @@ -1808,6 +1808,29 @@ This instruction replicates its result. dst = \frac{src.x}{src.x \times src.x + src.y \times src.y + src.z \times src.z + src.w \times src.w} +Interpolation ISA +^^^^^^^^^^^^^^^^^ + +The interpolation instructions allow an input to be interpolated in a +different way than its declaration. This corresponds to the GLSL 4.00 +interpolateAt* functions. The first argument of each of these must come from +``TGSI_FILE_INPUT``. + +.. opcode:: INTERP_CENTROID - Interpolate at the centroid + + Interpolates the varying specified by src0 at the centroid + +.. opcode:: INTERP_SAMPLE - Interpolate at the specified sample + + Interpolates the varying specified by src0 at the sample id specified by + src1.x (interpreted as an integer) + +.. opcode:: INTERP_OFFSET - Interpolate at the specified offset + + Interpolates the varying specified by src0 at the offset src1.xy from the + pixel center (interpreted as floats) + + .. _doubleopcodes: Double ISA |