[Mesa-dev] [PATCH] st/mesa: avoid vertex texture update for 0 case

Jakob Bornecrantz jakob at vmware.com
Tue Feb 7 08:29:29 PST 2012


----- Original Message -----
> From: Dave Airlie <airlied at redhat.com>
> 
> If we had no vertex textures previously and we have none now,
> don't bother doing the enables dance.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/state_tracker/st_atom_texture.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Nice find. Does this help performance? Can't we do the same for
fragment or does it just cost more to check (when this is rarely
the case) then just doing the rest of the function?

Cheers, Jakob.


More information about the mesa-dev mailing list