summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLepton Wu <[email protected]>2019-07-17 10:02:20 -0700
committerChia-I Wu <[email protected]>2019-07-17 16:17:48 -0700
commit6109df58e4abe18a0db589c3cebf21cbf0211197 (patch)
treed23575ae8b6ccbda4ea910485dbc9150e5296cc4
parentf1a89673448227dc22651b0b2d9fc05cbf5d928e (diff)
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 <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Reviewed-by: Chia-I Wu <[email protected]>
-rw-r--r--src/gallium/drivers/virgl/virgl_resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.c b/src/gallium/drivers/virgl/virgl_resource.c
index c22a78a4731..909deb774c7 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) {