nv50,nvc0: Fix gallium nine regression regarding sampler bindings
authorKarol Herbst <kherbst@redhat.com>
Sat, 24 Nov 2018 19:00:00 +0000 (20:00 +0100)
committerKarol Herbst <kherbst@redhat.com>
Sat, 1 Dec 2018 23:05:04 +0000 (00:05 +0100)
commitfc0139d28339f58bcbb4946fea7608ecdaff93e7
treee84a8fcf1d84bafb16eb4300cda5447bbf1e56e9
parentb6f095f7ce2988045daf32e03f7a4ecc5fb466bb
nv50,nvc0: Fix gallium nine regression regarding sampler bindings

The new approach is that samplers don't get unbound even if they won't be used
in a draw and we should just leave them be as well.

Fixes a regression in multiple windows games using gallium nine and nouveau.

v2: adjust num_samplers to keep track of the highest sampler bound
v3: rework how to set the new value of num_samplers

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106577
Fixes: 4d6fab245eec3880e2a59424a579851f44857ce8
       "cso: don't track the number of sampler states bound"
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c