diff options
author | Eric Anholt <[email protected]> | 2018-02-07 11:16:12 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-02-23 08:42:13 -0800 |
commit | a49738290c01a8e7db6d4053b1ab5c13e685c1bc (patch) | |
tree | 5f93bb91663789f16fe66f5c09a132a41600943c /src/gallium | |
parent | 0c1dd9dee0da6cde3031558a8e24a1fc400e0f99 (diff) |
broadcom/vc4: Use pipe_resource_reference in sampler views.
Improves u_debug_refcount output.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_state.c b/src/gallium/drivers/vc4/vc4_state.c index ed8d404a4f3..b4696ed7981 100644 --- a/src/gallium/drivers/vc4/vc4_state.c +++ b/src/gallium/drivers/vc4/vc4_state.c @@ -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; |