[Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

Lauri Kasanen cand at gmx.com
Tue Aug 16 10:34:30 PDT 2011


On Tue, 16 Aug 2011 12:48:17 -0400
Tom Stellard <tstellar at gmail.com> wrote:

> On r300g, ROUND(A) can be lowered to:
> 
> Fraction = FRC(A)
> Low = A - Fraction
> High = Low + 1
> Cond = Fraction - 0.5
> Rounded_Value = CMP(High, Low, Cond)
> 
> -Tom

Thanks for the info, that's better than my earlier floor(a+0.5).

I don't have any r300 hw though, so I don't think I'm in a good position to do so.

- Lauri


More information about the mesa-dev mailing list