cso: fix sampler view count in cso_set_sampler_views()
authorBrian Paul <brianp@vmware.com>
Wed, 2 Apr 2014 14:54:41 +0000 (08:54 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Apr 2014 19:58:05 +0000 (13:58 -0600)
commit2355a6441435b8e66a032c44f0794066338e30a3
tree1a181f03282760a2ae5533bf9117071df96bc2be
parent5a68f731029258ddede4bd5d578cee203f4a80b3
cso: fix sampler view count in cso_set_sampler_views()

We want to call pipe->set_sampler_views() with count being the
maximum of the old number of sampler views and the new number.
This makes sure we null-out any old sampler views.

We already do the same thing for sampler states in single_sampler_done().
Fixes some assertions seen in the VMware driver with XA tracker.

Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Tested-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/cso_cache/cso_context.c