svga: avoid emitting redundant SetSamplers() commands
authorBrian Paul <brianp@vmware.com>
Thu, 10 Dec 2015 21:55:33 +0000 (14:55 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Dec 2015 23:54:58 +0000 (16:54 -0700)
commit27d5be0b8fafecefc4f0378ca940cea8c0415715
tree8088de43323125e9cc3f9d6405c26a2b25acaaac
parent1291e910d591a27cb00ca8e41e93abd588f5e445
svga: avoid emitting redundant SetSamplers() commands

This greatly reduces the number of SetSamplers() commands for some
applications.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_state_sampler.c