summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-04-12 16:29:19 -0700
committerEric Anholt <[email protected]>2018-04-24 10:37:29 -0700
commit3d21fc193efc3ccca1e442d4f9409cd93eb04282 (patch)
treeff0860269cf059b6b078e70060ba28b6ac651d1d /src/gallium/drivers/vc5
parentf08f477a93e783361d2942133da18504c2851469 (diff)
broadcom/vc5: Set up internal_format for imported resources.
Without this, we'd assertion fail in u_transfer_helper when mapping an imported resource.
Diffstat (limited to 'src/gallium/drivers/vc5')
-rw-r--r--src/gallium/drivers/vc5/vc5_resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c
index 9c714b4183b..eb5fa4e908d 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");