It's part of pb_buffer already.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
return NULL;
}
- buffer = rws->buffer_from_handle(rws, whandle, &stride, NULL);
+ buffer = rws->buffer_from_handle(rws, whandle, &stride);
if (!buffer)
return NULL;
templ->depth0 != 1 || templ->last_level != 0)
return NULL;
- buf = rscreen->ws->buffer_from_handle(rscreen->ws, whandle, &stride, NULL);
+ buf = rscreen->ws->buffer_from_handle(rscreen->ws, whandle, &stride);
if (!buf)
return NULL;
}
static struct pb_buffer *radeon_winsys_bo_from_handle(struct radeon_winsys *rws,
- struct winsys_handle *whandle,
- unsigned *stride,
- unsigned *size)
+ struct winsys_handle *whandle,
+ unsigned *stride)
{
struct radeon_drm_winsys *ws = radeon_drm_winsys(rws);
struct radeon_bo *bo;
if (stride)
*stride = whandle->stride;
- if (size)
- *size = bo->base.size;
return (struct pb_buffer*)bo;
* \param whandle A winsys handle pointer as was received from a state
* tracker.
* \param stride The returned buffer stride in bytes.
- * \param size The returned buffer size.
*/
struct pb_buffer *(*buffer_from_handle)(struct radeon_winsys *ws,
struct winsys_handle *whandle,
- unsigned *stride,
- unsigned *size);
+ unsigned *stride);
/**
* Get a winsys handle from a winsys buffer. The internal structure