svga: check for no-ops in svga_bind_sampler_states()
authorBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2016 20:03:04 +0000 (13:03 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2016 20:03:04 +0000 (13:03 -0700)
commitb11bd20889bf7c5a728e69abecb6f10c4475d732
tree9cf63617448939f4583606756c3f0b39c6dcd347
parent6531ccb7056f80c32a29e07fe05381b0fd6557dc
svga: check for no-ops in svga_bind_sampler_states()

and svga_set_sampler_views().  If there's no change, return early
and don't set a SVGA_NEW_x dirty state flag.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_sampler.c