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:
parent
e57dfed419
commit
92474951a3
|
@ -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);
|
v3d_get_format_swizzle(&screen->devinfo, so->base.format);
|
||||||
util_format_compose_swizzles(fmt_swizzle, view_swizzle, so->swizzle);
|
util_format_compose_swizzles(fmt_swizzle, view_swizzle, so->swizzle);
|
||||||
|
|
||||||
|
pipe_reference_init(&so->base.reference, 1);
|
||||||
so->base.texture = prsc;
|
so->base.texture = prsc;
|
||||||
so->base.reference.count = 1;
|
|
||||||
so->base.context = pctx;
|
so->base.context = pctx;
|
||||||
|
|
||||||
if (rsc->separate_stencil &&
|
if (rsc->separate_stencil &&
|
||||||
|
|
Loading…
Reference in New Issue