OSDN Git Service

Eliminate unnecessary inverse masks.
authorNicolas Capens <capn@google.com>
Tue, 26 May 2015 06:09:27 +0000 (02:09 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 9 Aug 2017 21:03:11 +0000 (21:03 +0000)
commit7d9bdcb9e149c6b23c19db549904f0f67874378c
treef8946bd0774c0bee28a3f49055524b2f3c7a3aca
parent56dda25f29edf215296c90659459591ee1a28a6f
Eliminate unnecessary inverse masks.

~mask[i % size] is the same as mask[~i % size] because it's just an
expansion of i, so there's no need for invMask[] to store the former.

Change-Id: I754732a2c4978281d35037941ecb74448ab78a8e
Reviewed-on: https://swiftshader-review.googlesource.com/3258
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/Shader/Constants.cpp
src/Shader/Constants.hpp
src/Shader/PixelRoutine.cpp