i915g: Fix the sampler bind function
authorStéphane Marchesin <marcheu@chromium.org>
Tue, 8 Oct 2013 03:33:31 +0000 (20:33 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Tue, 8 Oct 2013 03:51:53 +0000 (20:51 -0700)
commit8c6594074e798e8d5e13dc49720f7b8b4b381bbb
treef2a9afd9733d8668e1ff15dd9cc702774635ab6b
parent6cd1da83770e1d93b60b13f5518ee5eaa2e6c19d
i915g: Fix the sampler bind function

The new sampler bind sends us NULL samplers, so we need to count
the number of valid samplers ourselves. This fixes ~500 piglit
regressions from the sampler rework.

While we're at it, let's also support start.
src/gallium/drivers/i915/i915_state.c