vl: replace DIV-ADD with MAD using inverse size
authorGert Wollny <gert.wollny@collabora.com>
Wed, 12 Jun 2019 14:04:33 +0000 (16:04 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Sun, 30 Jun 2019 16:41:26 +0000 (18:41 +0200)
commit187c308b96d0501552ec0287ec117273b51228f0
tree2c54017bff1d706a788f0c8d7c85474d1ea5fda0
parent89381191a96891a61a1f98102780669990b9f626
vl: replace DIV-ADD with MAD using inverse size

Optimize the shader a bit by emitting MAD with the inverse size values
instead of DIV+ADD.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/vl/vl_bicubic_filter.c