mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
broadcom/vc4: Use pipe_resource_reference in sampler views.
Improves u_debug_refcount output.
This commit is contained in:
parent
0c1dd9dee0
commit
a49738290c
1 changed files with 2 additions and 2 deletions
|
|
@ -567,8 +567,8 @@ vc4_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc,
|
|||
|
||||
so->base = *cso;
|
||||
|
||||
pipe_reference(NULL, &prsc->reference);
|
||||
so->base.texture = prsc;
|
||||
so->base.texture = NULL;
|
||||
pipe_resource_reference(&so->base.texture, prsc);
|
||||
so->base.reference.count = 1;
|
||||
so->base.context = pctx;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue