Re: [Mesa-dev] [PATCH v2 2/9] radeonsi: restrict cube map derivative computations to the correct plane

2017-01-12 Thread Marek Olšák
On Thu, Jan 12, 2017 at 4:39 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > As remarked by the comment in the original code, the old algorithm fails when > (tc + deriv) points at a different cube face. Instead, simply project the > derivative directly to the plane of the selected cube face.

[Mesa-dev] [PATCH v2 2/9] radeonsi: restrict cube map derivative computations to the correct plane

2017-01-12 Thread Nicolai Hähnle
From: Nicolai Hähnle As remarked by the comment in the original code, the old algorithm fails when (tc + deriv) points at a different cube face. Instead, simply project the derivative directly to the plane of the selected cube face. The new code is based on exactly differentiating (using the cha