From 65e2cf98d5162b8926ab888f8f120b3574d44b43 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 16 Jul 2019 17:02:56 +0200 Subject: [PATCH] zink: initialize nr_samples for pipe_surface Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_surface.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2