[Mesa-dev] [PATCH 2/3] mesa: Avoid computing fixed function texture state setup if possible.
brianp at vmware.com
Thu Feb 16 16:25:11 PST 2012
On 02/16/2012 04:40 PM, Eric Anholt wrote:
> None of the consumers of this state will be called while the fs or vs
> is in place, and the update_texture_state() call will get re-called on
> fs/vs change, so it should be safe to skip the computation. Improves
> the performance of a VS state change microbenchmark by 1.60186% +/-
> 0.443318% (n=20).
> v2: Add comments explaining the flow of state to these two functions.
It looks like the comments might be longer than 80 columns, but it's
not a big deal.
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev