gallium/cso: fix sampler / sampler_view counts
authorRoland Scheidegger <sroland@vmware.com>
Tue, 26 Nov 2013 02:42:44 +0000 (03:42 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 28 Nov 2013 03:02:41 +0000 (04:02 +0100)
commitca39f4eee272bd111eccae79f770493d55cf91bb
treef05333c3e2b940ce2b0146cd5e42e6353ff45bb7
parent2983c039df630bb9bcb70c52219c631e27b0eae6
gallium/cso: fix sampler / sampler_view counts

Now that it is possible to query drivers for the max sampler view it should
be safe to increase this without crashing.
Not entirely convinced this really works correctly though if state trackers
using non-linked sampler / sampler_views use this.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/cso_cache/cso_context.c