[Mesa-dev] [PATCH 14/29] radeon/r200: Use bitmask/ffs to iterate enabled lights
From: Mathias FröhlichReplaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of
[Mesa-dev] [PATCH 14/29] radeon/r200: Use bitmask/ffs to iterate enabled lights
From: Mathias FröhlichReplaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. Signed-off-by: Mathias Fröhlich --- src/mesa/drivers/dri/r200/r200_state.c