broadcom/vc5: Set up internal_format for imported resources.

Without this, we'd assertion fail in u_transfer_helper when mapping an
imported resource.
This commit is contained in:
Eric Anholt 2018-04-12 16:29:19 -07:00
parent f08f477a93
commit 3d21fc193e

View file

@ -731,6 +731,8 @@ vc5_resource_from_handle(struct pipe_screen *pscreen,
if (!rsc->bo)
goto fail;
rsc->internal_format = prsc->format;
vc5_setup_slices(rsc);
vc5_debug_resource_layout(rsc, "import");