v3d: use function to initialize refcount

Call proper pipe reference function to initialize the reference
counting.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16837>
This commit is contained in:
Juan A. Suarez Romero 2022-06-02 17:05:07 +02:00 committed by Marge Bot
parent e57dfed419
commit 92474951a3
1 changed files with 1 additions and 1 deletions

View File

@ -1073,8 +1073,8 @@ v3d_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc,
v3d_get_format_swizzle(&screen->devinfo, so->base.format);
util_format_compose_swizzles(fmt_swizzle, view_swizzle, so->swizzle);
pipe_reference_init(&so->base.reference, 1);
so->base.texture = prsc;
so->base.reference.count = 1;
so->base.context = pctx;
if (rsc->separate_stencil &&