dri/nouveau: allow multiple maps of surface buffers
authorBen Skeggs <bskeggs@redhat.com>
Wed, 19 Jan 2011 05:51:57 +0000 (15:51 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 19 Jan 2011 05:51:57 +0000 (15:51 +1000)
commitc73a1c18b2eb15b2e42a072222a5b166080a52ef
treeb9d930f9119ddee83adc2eb4aa51f6fb82b0257a
parentf7bab47e6c7cf877acf6d9bb85453851e5aa7f19
dri/nouveau: allow multiple maps of surface buffers

Can happen during swrast fallbacks if a buffer is somehow bound as
a render target and a texture.

Fixes gnome-shell on nv20, and gets it mostly working on nv10.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/mesa/drivers/dri/nouveau/nouveau_texture.c