nouveau: take ownership rather than adding reference for new renderbuffers
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 8 Apr 2017 00:26:34 +0000 (10:26 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 10 Apr 2017 00:55:34 +0000 (10:55 +1000)
commit1b85009ec14ded1b51e3ceafc748b8f5ee732874
tree1d5d801bda4fc8c8ea7314cbf3eff43acea73d38
parent3387f66cab058d5e3bfa5fee5d8a9ea5c8ce9568
nouveau: take ownership rather than adding reference for new renderbuffers

This avoids locking in the reference calls and fixes a leak after the
RefCount initialisation was change from 0 to 1.

Fixes: 32141e53d1520 (mesa: tidy up renderbuffer RefCount initialisation)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/drivers/dri/nouveau/nouveau_screen.c