diff options
author | Marek Olšák <[email protected]> | 2011-09-27 02:08:15 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-09-30 23:19:52 +0200 |
commit | af8eb5c851a9d566059ae9e37745614cd96b9a13 (patch) | |
tree | 466ccb03707abc2ba32652d97c6977385673362a /src/gallium/winsys/radeon | |
parent | 90ce3cdde9fb2dd507b4e21c5456a3371f5996bc (diff) |
winsys/radeon: remove a redundant parameter 'size' from buffer_from_handle
It's part of pb_buffer already.
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 7 | ||||
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_winsys.h | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 6a8dabf1c24..20139b42c68 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -533,9 +533,8 @@ radeon_winsys_bo_create(struct radeon_winsys *rws, } 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; @@ -591,8 +590,6 @@ done: if (stride) *stride = whandle->stride; - if (size) - *size = bo->base.size; return (struct pb_buffer*)bo; diff --git a/src/gallium/winsys/radeon/drm/radeon_winsys.h b/src/gallium/winsys/radeon/drm/radeon_winsys.h index b92dad8155e..31d39e9bdcb 100644 --- a/src/gallium/winsys/radeon/drm/radeon_winsys.h +++ b/src/gallium/winsys/radeon/drm/radeon_winsys.h @@ -230,12 +230,10 @@ struct radeon_winsys { * \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 |