summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-08-03 13:22:30 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-08-03 13:22:30 +0100
commit7d5c25c8a70f42a16b682f4366247cdb8457a631 (patch)
tree7e769e75047d8a00c63aef7675792b8d11fb3d73 /src/mesa/drivers
parentb8846a5be9443ed5d4027ca164c159f93e707824 (diff)
Remove "static region" support.
The frontbuffer/driBufMgr interactions are handled as a special case in the intel_screen code.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915pipe/intel_regions.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_regions.c b/src/mesa/drivers/dri/i915pipe/intel_regions.c
index f2280ceb51..75ba1f9cdb 100644
--- a/src/mesa/drivers/dri/i915pipe/intel_regions.c
+++ b/src/mesa/drivers/dri/i915pipe/intel_regions.c
@@ -139,68 +139,9 @@ intel_region_release(struct pipe_context *pipe, struct pipe_region **region)
}
-static struct pipe_region *
-intel_region_create_static(struct pipe_context *pipe,
- GLuint mem_type,
- GLuint offset,
- void *virtual,
- GLuint cpp, GLuint pitch, GLuint height)
-{
- intelScreenPrivate *intelScreen = pipe_screen(pipe);
- struct pipe_region *region = calloc(sizeof(*region), 1);
- DBG("%s\n", __FUNCTION__);
-
- region->cpp = cpp;
- region->pitch = pitch;
- region->height = height; /* needed? */
- region->refcount = 1;
-
- /*
- * We use a "shared" buffer type to indicate buffers created and
- * shared by others.
- */
-
- driGenBuffers(intelScreen->staticPool, "static region", 1,
- &region->buffer, 64,
- DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_NO_MOVE |
- DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE, 0);
- driBOSetStatic(region->buffer, offset, pitch * cpp * height, virtual, 0);
-
- return region;
-}
-static void
-intel_region_update_static(struct pipe_context *pipe,
- struct pipe_region *region,
- GLuint mem_type,
- GLuint offset,
- void *virtual,
- GLuint cpp, GLuint pitch, GLuint height)
-{
- intelScreenPrivate *intelScreen = pipe_screen(pipe);
-
- DBG("%s\n", __FUNCTION__);
-
- region->cpp = cpp;
- region->pitch = pitch;
- region->height = height; /* needed? */
-
- /*
- * We use a "shared" buffer type to indicate buffers created and
- * shared by others.
- */
-
- driDeleteBuffers(1, &region->buffer);
- driGenBuffers(intelScreen->staticPool, "static region", 1,
- &region->buffer, 64,
- DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_NO_MOVE |
- DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE, 0);
- driBOSetStatic(region->buffer, offset, pitch * cpp * height, virtual, 0);
-
-}
-
/*
@@ -349,8 +290,6 @@ intel_init_region_functions(struct pipe_context *pipe)
pipe->region_unmap = intel_region_unmap;
pipe->region_alloc = intel_region_alloc;
pipe->region_release = intel_region_release;
- pipe->region_create_static = intel_region_create_static;
- pipe->region_update_static = intel_region_update_static;
pipe->region_data = intel_region_data;
pipe->region_copy = intel_region_copy;
pipe->region_fill = intel_region_fill;