Re: [Mesa-dev] [PATCH] radv: Rework guard band calculation.

2017-04-02 Thread Dave Airlie
On 2 April 2017 at 22:43, Bas Nieuwenhuizen wrote: > We want the guardband_x/y to be the largerst scalars such that each > viewport scaled by that amount is still a subrange of [-32767, 32767]. > > The old code has a couple of issues: > 1) It used scissor instead of

[Mesa-dev] [PATCH] radv: Rework guard band calculation.

2017-04-02 Thread Bas Nieuwenhuizen
We want the guardband_x/y to be the largerst scalars such that each viewport scaled by that amount is still a subrange of [-32767, 32767]. The old code has a couple of issues: 1) It used scissor instead of viewport_scissor, potentially taking into account a viewport that is too small and