renderonly: drop resources on destroy
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 27 Apr 2017 16:44:02 +0000 (18:44 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 2 May 2017 20:19:23 +0000 (22:19 +0200)
commitcd8ee259c8e9b1c16b5c3214595b91eb31e7de19
tree6b54f1ad31fa917fc2b0d5d4544ae84c68467997
parentab51cd2f26496500d52f6b2847291d884f711bc2
renderonly: drop resources on destroy

The renderonly_scanout holds a reference on its prime pipe resource,
which should be released when it is destroyed. If it was created by
renderonly_create_kms_dumb_buffer_for_resource, the dumb BO also has
to be destroyed.

Fixes: 848b49b288f ("gallium: add renderonly library")
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/auxiliary/renderonly/renderonly.c
src/gallium/auxiliary/renderonly/renderonly.h
src/gallium/drivers/etnaviv/etnaviv_resource.c