summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-07-01 21:57:46 -0700
committerKenneth Graunke <[email protected]>2013-07-03 10:48:13 -0700
commit1f6ebdd43ffdcb26adf41211c3f2e535bfb8d339 (patch)
treee422cabbf83ab61c928e055b9074c8251afd20ba /src/mesa
parent6e5b80ee5a11d13556d30b551d4a16e94ab0ff58 (diff)
i965: Remove intel_buffer_object::source.
This was only used for BOs backed by system memory on i915. With that gone, there's nothing that even sets source to non-zero, so this is purely dead code. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_buffer_objects.c4
-rw-r--r--src/mesa/drivers/dri/i965/intel_buffer_objects.h2
2 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
index 3f55122823e..466fdfe8dae 100644
--- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
@@ -65,7 +65,6 @@ release_buffer(struct intel_buffer_object *intel_obj)
drm_intel_bo_unreference(intel_obj->buffer);
intel_obj->buffer = NULL;
intel_obj->offset = 0;
- intel_obj->source = 0;
}
/**
@@ -414,9 +413,6 @@ intel_bufferobj_buffer(struct intel_context *intel,
struct intel_buffer_object *intel_obj,
GLuint flag)
{
- if (intel_obj->source)
- release_buffer(intel_obj);
-
if (intel_obj->buffer == NULL)
intel_bufferobj_alloc_buffer(intel, intel_obj);
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.h b/src/mesa/drivers/dri/i965/intel_buffer_objects.h
index 11be027e4d6..0ea7300f1c6 100644
--- a/src/mesa/drivers/dri/i965/intel_buffer_objects.h
+++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.h
@@ -47,8 +47,6 @@ struct intel_buffer_object
void *range_map_buffer;
unsigned int range_map_offset;
GLsizei range_map_size;
-
- bool source;
};