broadcom/vc4: Use pipe_resource_reference in sampler views.

Improves u_debug_refcount output.
This commit is contained in:
Eric Anholt 2018-02-07 11:16:12 +00:00
parent 0c1dd9dee0
commit a49738290c

View file

@ -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;