Re: [Mesa-dev] [PATCH] gallium/util: Fix incorrect refcounting of separate stencil.

2018-04-25 Thread Rob Clark
On Wed, Apr 25, 2018 at 12:49 PM, Eric Anholt wrote: > The driver may have a reference on the separate stencil buffer for some > reason (like an unflushed job using it), so we can't directly free the > resource and should instead just decrement the refcount that we own. > Fixes double-free in KHR-

[Mesa-dev] [PATCH] gallium/util: Fix incorrect refcounting of separate stencil.

2018-04-25 Thread Eric Anholt
The driver may have a reference on the separate stencil buffer for some reason (like an unflushed job using it), so we can't directly free the resource and should instead just decrement the refcount that we own. Fixes double-free in KHR-GLES3.packed_depth_stencil.blit.depth32f_stencil8 on vc5. Fix