summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_resource.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-16 16:11:27 -0800
committerEric Anholt <[email protected]>2014-12-17 16:06:17 -0800
commit113044e1b9d8f70a26f826f7c03adcbbc8ecb138 (patch)
tree986d87c2b17e0f955903c35e00dc8a2628da97f2 /src/gallium/drivers/vc4/vc4_resource.c
parentf97b731c82afb06cfd6ffebc90a3e098a9a1b308 (diff)
vc4: Drop a weird argument in the BOs-from-handles API.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c
index a00ce71049b..df4c2073df4 100644
--- a/src/gallium/drivers/vc4/vc4_resource.c
+++ b/src/gallium/drivers/vc4/vc4_resource.c
@@ -372,12 +372,14 @@ vc4_resource_from_handle(struct pipe_screen *pscreen,
return NULL;
rsc->tiled = false;
- rsc->bo = vc4_screen_bo_from_handle(pscreen, handle, &slice->stride);
+ rsc->bo = vc4_screen_bo_from_handle(pscreen, handle);
if (!rsc->bo)
goto fail;
#ifdef USE_VC4_SIMULATOR
slice->stride = align(prsc->width0 * rsc->cpp, 16);
+#else
+ slice->stride = handle->stride;
#endif
slice->tiling = VC4_TILING_FORMAT_LINEAR;