summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-11 21:05:46 +0200
committerMarek Olšák <[email protected]>2011-09-12 22:03:03 +0200
commitf97acf40155a5d63a70ac6875df8128cb91d2369 (patch)
tree286bc68d6cc46d44ddd8c9bce40089ad61ab4a21 /src/gallium/drivers/r600
parent12325b7962ba0dcc34cef2b6070ecd511e5ffa88 (diff)
r600g: remove unused function r600_buffer_from_handle
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c26
-rw-r--r--src/gallium/drivers/r600/r600_pipe.h2
2 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index e504e3e5cbb..409ab17cf3f 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -211,32 +211,6 @@ struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen,
return &rbuffer->b.b.b;
}
-struct pipe_resource *r600_buffer_from_handle(struct pipe_screen *screen,
- struct winsys_handle *whandle)
-{
- struct radeon *rw = ((struct r600_screen*)screen)->radeon;
- struct r600_resource *rbuffer;
- struct r600_bo *bo = NULL;
-
- bo = r600_bo_handle(rw, whandle, NULL, NULL);
- if (bo == NULL) {
- return NULL;
- }
-
- rbuffer = CALLOC_STRUCT(r600_resource);
- if (rbuffer == NULL) {
- r600_bo_reference(&bo, NULL);
- return NULL;
- }
-
- pipe_reference_init(&rbuffer->b.b.b.reference, 1);
- rbuffer->b.b.b.target = PIPE_BUFFER;
- rbuffer->b.b.b.screen = screen;
- rbuffer->b.b.vtbl = &r600_buffer_vtbl;
- rbuffer->bo = bo;
- return &rbuffer->b.b.b;
-}
-
void r600_upload_index_buffer(struct r600_pipe_context *rctx, struct r600_drawl *draw)
{
struct r600_resource *rbuffer = r600_resource(draw->index_buffer);
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
index 7c7f0424a26..d7fa1b931b8 100644
--- a/src/gallium/drivers/r600/r600_pipe.h
+++ b/src/gallium/drivers/r600/r600_pipe.h
@@ -274,8 +274,6 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen,
void *ptr, unsigned bytes,
unsigned bind);
-struct pipe_resource *r600_buffer_from_handle(struct pipe_screen *screen,
- struct winsys_handle *whandle);
void r600_upload_index_buffer(struct r600_pipe_context *rctx, struct r600_drawl *draw);