From: Erik Faye-Lund Date: Tue, 16 Jul 2019 15:02:56 +0000 (+0200) Subject: zink: initialize nr_samples for pipe_surface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65e2cf98d5162b8926ab888f8f120b3574d44b43;p=mesa.git zink: initialize nr_samples for pipe_surface Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/zink_surface.c b/src/gallium/drivers/zink/zink_surface.c index 0f83123fa51..dc0c0b3ce0a 100644 --- a/src/gallium/drivers/zink/zink_surface.c +++ b/src/gallium/drivers/zink/zink_surface.c @@ -48,6 +48,7 @@ zink_create_surface(struct pipe_context *pctx, surface->base.format = templ->format; surface->base.width = u_minify(pres->width0, level); surface->base.height = u_minify(pres->height0, level); + surface->base.nr_samples = templ->nr_samples; surface->base.u.tex.level = level; surface->base.u.tex.first_layer = templ->u.tex.first_layer; surface->base.u.tex.last_layer = templ->u.tex.last_layer;