vc4: Drop a weird argument in the BOs-from-handles API.

This commit is contained in:
Eric Anholt
2014-12-16 16:11:27 -08:00
parent f97b731c82
commit 113044e1b9
3 changed files with 5 additions and 7 deletions

View File

@@ -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;