aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_region.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-06 10:15:30 +0100
committerKeith Whitwell <[email protected]>2007-08-06 10:15:30 +0100
commit95794abec4bdc5cda9f2e7d139a70c3acf372fe3 (patch)
tree31b3c2550363639bccd6a8d1e72a860f196800f7 /src/mesa/pipe/softpipe/sp_region.c
parent1d1b9e6be45e75ad12a01c82e3c0d55ff9da4183 (diff)
Add pipe buffer managment functions.
The state_tracker driver needs these to implement, eg. pixel buffer objects, vertex buffer objects.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_region.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_region.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/pipe/softpipe/sp_region.c b/src/mesa/pipe/softpipe/sp_region.c
index 78a0919ad50..a0ced3eb869 100644
--- a/src/mesa/pipe/softpipe/sp_region.c
+++ b/src/mesa/pipe/softpipe/sp_region.c
@@ -80,7 +80,7 @@ sp_region_alloc(struct pipe_context *pipe,
region->height = height; /* needed? */
region->refcount = 1;
- region->buffer = sp->winsys->create_buffer(sp->winsys, "region", 64 );
+ region->buffer = sp->winsys->create_buffer( sp->winsys, 64 );
sp->winsys->buffer_data( sp->winsys,
region->buffer,
@@ -259,13 +259,6 @@ sp_region_fill(struct pipe_context *pipe,
-static struct _DriBufferObject *
-sp_region_buffer(struct pipe_context *pipe,
- struct pipe_region *region, GLuint flag)
-{
- return region->buffer;
-}
-
void
@@ -279,6 +272,5 @@ sp_init_region_functions(struct softpipe_context *sp)
sp->pipe.region_data = sp_region_data;
sp->pipe.region_copy = sp_region_copy;
sp->pipe.region_fill = sp_region_fill;
- sp->pipe.region_buffer = sp_region_buffer;
}