This is to support dithering 16 bit gradients with decent performance. --HG-- extra : rebase_source : cffa90d5959211c8c1953867d85c7799ed52d662