cso: null-out previously bound sampler states
authorBrian Paul <brianp@vmware.com>
Mon, 2 May 2016 16:24:43 +0000 (10:24 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 May 2016 21:40:49 +0000 (15:40 -0600)
commit68116dcd5a05508af06cd41ca14faab1b910a934
tree0ece9bc3c154712f4b93acb3d1ca4f71d73cde36
parent05abaa65c745d74fb296006285b85d253cb11525
cso: null-out previously bound sampler states

If, for example, we previously had 2 sampler states bound and now we
are binding one, we'd leave the second sampler state unchanged.
This change nulls-out the second sampler state in this situation.
We're already doing the same thing for sampler views.

This silences an occasional warning issued by the VMware driver when
the number of sampler views and sampler states disagreed.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/auxiliary/cso_cache/cso_context.c