mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
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:
parent
f08f477a93
commit
3d21fc193e
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue