Skip to content
Commit c0aeac15 authored by Emma Anholt's avatar Emma Anholt Committed by Juan A. Suarez Romero
Browse files

gallium/util: Fix incorrect refcounting of separate stencil.



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.

Fixes: e94eb5e6 ("gallium/util: add u_transfer_helper")
Reviewed-by: default avatarRob Clark <robdclark@gmail.com>
(cherry picked from commit 069c409f)
parent 1fccd673
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment