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;
struct vc4_bo *
vc4_screen_bo_from_handle(struct pipe_screen *pscreen,
- struct winsys_handle *whandle,
- unsigned *out_stride)
+ struct winsys_handle *whandle)
{
struct vc4_screen *screen = vc4_screen(pscreen);
struct vc4_bo *bo;
return NULL;
}
- *out_stride = whandle->stride;
-
return bo;
}
struct winsys_handle *whandle);
struct vc4_bo *
vc4_screen_bo_from_handle(struct pipe_screen *pscreen,
- struct winsys_handle *whandle,
- unsigned *out_stride);
+ struct winsys_handle *whandle);
extern uint32_t vc4_debug;