Module: Mesa Branch: master Commit: 3d21fc193efc3ccca1e442d4f9409cd93eb04282 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d21fc193efc3ccca1e442d4f9409cd93eb04282
Author: Eric Anholt <e...@anholt.net> Date: Thu Apr 12 16:29:19 2018 -0700 broadcom/vc5: Set up internal_format for imported resources. Without this, we'd assertion fail in u_transfer_helper when mapping an imported resource. --- src/gallium/drivers/vc5/vc5_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c index 9c714b4183..eb5fa4e908 100644 --- a/src/gallium/drivers/vc5/vc5_resource.c +++ b/src/gallium/drivers/vc5/vc5_resource.c @@ -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"); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit