From 1f6ebdd43ffdcb26adf41211c3f2e535bfb8d339 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 1 Jul 2013 21:57:46 -0700 Subject: [PATCH] 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 Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 4 ---- src/mesa/drivers/dri/i965/intel_buffer_objects.h | 2 -- 2 files changed, 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; }; -- 2.30.2