[Mesa-dev] [PATCH 05/13] gallium/docs: refactoring opcode RCC

Roland Scheidegger sroland at vmware.com
Wed Oct 8 08:07:57 PDT 2014


Am 08.10.2014 um 13:40 schrieb Alexander Troosh:
> ---
>  src/gallium/docs/source/tgsi.rst |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst
> index 12c675e..b1be923 100644
> --- a/src/gallium/docs/source/tgsi.rst
> +++ b/src/gallium/docs/source/tgsi.rst
> @@ -408,11 +408,10 @@ This instruction replicates its result.
>  
>  This instruction replicates its result.
>  
> -XXX cleanup on aisle three
> -
>  .. math::
>  
> -  dst = (src.x > 0) ? \quad clamp(\frac1{src.x}, 5.42101e-020, 1.84467e+019) : clamp(\frac1{src.x}, -1.84467e+019, -5.42101e-020)
> +  dst = \begin{cases} clamp\left(\dfrac1{src.x}, \quad +5.42101 \times {10}^{-20}, \quad +1.84467 \times {10}^{+19}\right) & \mbox{for } src.x > 0 \\
> +                      clamp\left(\dfrac1{src.x}, \quad -1.84467 \times {10}^{+19}, \quad -5.42101 \times {10}^{-20}\right) & \mbox{otherwise} \end{cases}
>  
>  
>  .. opcode:: DPH - Homogeneous Dot Product
> 

FWIW I'm pretty sure the comment you've deleted referred to the actual
opcode, not the documentation of it. But not really an issue...

Some of the changes in the series look a bit confusing viewed as source
(who looks at the processed version, anyway :-)), but I guess it all
works. So that's ok by me but I'm not an expert on the matter.

Roland




More information about the mesa-dev mailing list