broadcom/vc4: Fix double-unrefcounting of prsc->next with shadows.
authorEric Anholt <eric@anholt.net>
Tue, 20 Feb 2018 16:28:07 +0000 (16:28 +0000)
committerEric Anholt <eric@anholt.net>
Fri, 23 Feb 2018 16:42:13 +0000 (08:42 -0800)
commitc824a045ea639b8a93cbc2518b16900402d9150f
tree44b3e20299663a1aa230b89a340a0211f7594f13
parent6deb158ec1e03027d855df6a2513c8595ed95924
broadcom/vc4: Fix double-unrefcounting of prsc->next with shadows.

When we set up the shadow resource we were copying the original resource
as the template, including its prsc->next field.  When we shadowed the
first YUV plane's resource for linear-to-tiled conversion, we would end up
unbalancing the refcount on the shadow resource's destruction.
src/gallium/drivers/vc4/vc4_state.c