swr/rast: Flip BitScanReverse index calculation
authorAlok Hota <alok.hota@intel.com>
Tue, 14 Aug 2018 17:36:00 +0000 (12:36 -0500)
committerAlok Hota <alok.hota@intel.com>
Fri, 15 Feb 2019 20:53:58 +0000 (14:53 -0600)
commit05e4ff33f5c717275e88844e67d0fc3dd12d9d2b
tree2f9717e0b23a452f4e3ebdcd14bee3376716f80d
parentae400a9b113a46ef0e1224f75bbb4f0533686cec
swr/rast: Flip BitScanReverse index calculation

The intrinsic returns the number of leading zeros, not the bit number of
the first nonzero, so just flip it based on the mask size

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/os.h