[PATCH] glamor: * 1/size is faster than / size in VS

Matt Turner mattst88 at gmail.com
Fri Jan 16 13:52:28 PST 2015


On Fri, Jan 16, 2015 at 10:44 AM, Keith Packard <keithp at keithp.com> wrote:
> Pass the inverse of the texture size to glamor vertex shaders so that
> we multiply by that instead of dividing by the size as multiplication
> is generally faster than division.
>
> Signed-off-by: Keith Packard <keithp at keithp.com>

Makes sense to me.

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the xorg-devel mailing list