i965: Remove intel_buffer_object::source.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 2 Jul 2013 04:57:46 +0000 (21:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Jul 2013 17:48:13 +0000 (10:48 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_buffer_objects.c
src/mesa/drivers/dri/i965/intel_buffer_objects.h

index 3f55122823e660d3e61dff946860af1cbd9d8e19..466fdfe8dae98a9b85382aaa9b889ce3c7881e68 100644 (file)
@@ -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);
 
index 11be027e4d601e3bdc6acfcd48cebd802aaf8f27..0ea7300f1c66b4d33d032e9c10b5bb938d5b1198 100644 (file)
@@ -47,8 +47,6 @@ struct intel_buffer_object
    void *range_map_buffer;
    unsigned int range_map_offset;
    GLsizei range_map_size;
-
-   bool source;
 };