mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 03:58:22 +02:00
virgl: Set meta data for textures from handle.
The set of meta data was removed by commit8083464. It broke lots of dEQP tests when running with pbuffer surface type. Fixes:8083464013("virgl: remove dead code") Signed-off-by: Lepton Wu <lepton@chromium.org> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> (cherry picked from commit6109df58e4)
This commit is contained in:
parent
1527d02acb
commit
3dea2e2ffc
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue