Re: [Mesa-dev] [PATCH 1/2] llvmpipe: fix depth clamping wrt reversed near/far values

2016-08-15 Thread Jose Fonseca
On 15/08/16 04:41, srol...@vmware.com wrote: From: Roland Scheidegger This wasn't handled before (the result was that no matter what value got clamped, it always ended up as the near value in this case) (if clamping actually happened). Fix this by using the util helper for that (the math is oth

Re: [Mesa-dev] [PATCH 1/2] llvmpipe: fix depth clamping wrt reversed near/far values

2016-08-14 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Sun, Aug 14, 2016 at 11:41 PM, wrote: > From: Roland Scheidegger > > This wasn't handled before (the result was that no matter what value got > clamped, it always ended up as the near value in this case) (if clamping > actually happened). > Fix this by using the uti

[Mesa-dev] [PATCH 1/2] llvmpipe: fix depth clamping wrt reversed near/far values

2016-08-14 Thread sroland
From: Roland Scheidegger This wasn't handled before (the result was that no matter what value got clamped, it always ended up as the near value in this case) (if clamping actually happened). Fix this by using the util helper for that (the math is otherwise "mostly" the same, mostly because there