mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
zink: don't copy inner surface refcount
this leaks surfaces. lots of surfaces. Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12875>
This commit is contained in:
parent
929db0a818
commit
8e9ec440af
1 changed files with 1 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ wrap_surface(struct pipe_context *pctx, struct pipe_surface *psurf)
|
|||
{
|
||||
struct zink_ctx_surface *csurf = CALLOC_STRUCT(zink_ctx_surface);
|
||||
csurf->base = *psurf;
|
||||
pipe_reference_init(&csurf->base.reference, 1);
|
||||
csurf->surf = (struct zink_surface*)psurf;
|
||||
csurf->base.context = pctx;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue