Re: [Mesa-dev] [PATCH 3/3] st/mesa: round lod_bias to a multiple of 1/256

2016-12-02 Thread Marek Olšák
On Fri, Dec 2, 2016 at 10:18 PM, Roland Scheidegger wrote: > Ideally this wouldn't be tied to specific hardware... That said, I > believe the clamping limits are sane (d3d10 will use these too). If GL > has some requirements for lod accuracy or if it's queryable, it should >

Re: [Mesa-dev] [PATCH 3/3] st/mesa: round lod_bias to a multiple of 1/256

2016-12-02 Thread Roland Scheidegger
Ideally this wouldn't be tied to specific hardware... That said, I believe the clamping limits are sane (d3d10 will use these too). If GL has some requirements for lod accuracy or if it's queryable, it should probably honor this (d3d10 only would require 6 fractional bits), although I'd guess that

[Mesa-dev] [PATCH 3/3] st/mesa: round lod_bias to a multiple of 1/256

2016-12-02 Thread Marek Olšák
From: Marek Olšák This reduces the number of sampler states 3.6x in Batman Arkham: Origins. (from ~7200 to ~2000) --- src/mesa/state_tracker/st_atom_sampler.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/state_tracker/st_atom_sampler.c