zink: initialize nr_samples for pipe_surface
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 16 Jul 2019 15:02:56 +0000 (17:02 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:47 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_surface.c

index 0f83123fa513b1aeca37727bc8376685a8ef5ee2..dc0c0b3ce0a31cfd613455085203256d0f88bf3a 100644 (file)
@@ -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;