softpipe/aniso: move DDQ calculation to after scaling.
authorDave Airlie <airlied@redhat.com>
Fri, 16 Jul 2021 02:28:57 +0000 (12:28 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 18 Jul 2021 06:16:26 +0000 (16:16 +1000)
commit57dcfb4e55346ee2d7e3da79e93a7d36a8a5ca17
treee24678d18445b373e24a533b6ac877da4c3b3893
parent7de5293b897080a2a954d54e076b2c1e55f08c53
softpipe/aniso: move DDQ calculation to after scaling.

I've read the papers on EWA filters and it seems like the calculate
DDQ = 2 * A after the scaling of A happens. This seems to make
things less blurry and more like real aniso.

Fixes: 2135aba8 ("softpipe: Constify variables")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11917>
src/gallium/drivers/softpipe/sp_tex_sample.c