From: Lepton Wu Date: Wed, 17 Jul 2019 17:02:20 +0000 (-0700) Subject: virgl: Set meta data for textures from handle. X-Git-Tag: upstream/19.3.0~4083 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6109df58e4abe18a0db589c3cebf21cbf0211197;p=platform%2Fupstream%2Fmesa.git virgl: Set meta data for textures from handle. The set of meta data was removed by commit 8083464. It broke lots of dEQP tests when running with pbuffer surface type. Fixes: 80834640137 ("virgl: remove dead code") Signed-off-by: Lepton Wu Reviewed-by: Erik Faye-Lund Reviewed-by: Chia-I Wu --- diff --git a/src/gallium/drivers/virgl/virgl_resource.c b/src/gallium/drivers/virgl/virgl_resource.c index c22a78a..909deb7 100644 --- a/src/gallium/drivers/virgl/virgl_resource.c +++ b/src/gallium/drivers/virgl/virgl_resource.c @@ -515,6 +515,7 @@ static struct pipe_resource *virgl_resource_from_handle(struct pipe_screen *scre res->u.b = *templ; res->u.b.screen = &vs->base; pipe_reference_init(&res->u.b.reference, 1); + virgl_resource_layout(&res->u.b, &res->metadata); res->hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle); if (!res->hw_res) {