st/mesa: round lod_bias to a multiple of 1/256
authorMarek Olšák <marek.olsak@amd.com>
Fri, 2 Dec 2016 15:37:22 +0000 (16:37 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Dec 2016 17:46:54 +0000 (18:46 +0100)
commit132b69c4edb824c70c98f8937c63e49b04f3adff
tree4ecb36a0bc0b9743c9795c79619a11f171ac8a9e
parent4b0d8b2da09c4d3be675d4312a9efd832126b98c
st/mesa: round lod_bias to a multiple of 1/256

This reduces the number of sampler states 3.6x in Batman Arkham: Origins.
(from ~7200 to ~2000)

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_sampler.c