/* Break the COW tie to the region. The region gets to keep the data.
*/
void
-intel_bufferobj_release_region(struct intel_context *intel,
- struct intel_buffer_object *intel_obj)
+intel_bufferobj_release_region(struct intel_buffer_object *intel_obj)
{
assert(intel_obj->region->buffer == intel_obj->buffer);
intel_obj->region->pbo = NULL;
static void
intel_bufferobj_free(struct gl_context * ctx, struct gl_buffer_object *obj)
{
- struct intel_context *intel = intel_context(ctx);
struct intel_buffer_object *intel_obj = intel_buffer_object(obj);
assert(intel_obj);
free(intel_obj->sys_buffer);
if (intel_obj->region) {
- intel_bufferobj_release_region(intel, intel_obj);
+ intel_bufferobj_release_region(intel_obj);
}
drm_intel_bo_unreference(intel_obj->buffer);
assert(!obj->Pointer); /* Mesa should have unmapped it */
if (intel_obj->region)
- intel_bufferobj_release_region(intel, intel_obj);
+ intel_bufferobj_release_region(intel_obj);
if (intel_obj->buffer != NULL)
release_buffer(intel_obj);
if (flag == INTEL_WRITE_PART)
intel_bufferobj_cow(intel, intel_obj);
else if (flag == INTEL_WRITE_FULL) {
- intel_bufferobj_release_region(intel, intel_obj);
+ intel_bufferobj_release_region(intel_obj);
intel_bufferobj_alloc_buffer(intel, intel_obj);
}
}
*/
void intel_bufferobj_cow(struct intel_context *intel,
struct intel_buffer_object *intel_obj);
-void intel_bufferobj_release_region(struct intel_context *intel,
- struct intel_buffer_object *intel_obj);
+void intel_bufferobj_release_region(struct intel_buffer_object *intel_obj);
#endif
* but BaseLevel.
*/
static void
-intel_update_max_level(struct intel_context *intel,
- struct intel_texture_object *intelObj,
+intel_update_max_level(struct intel_texture_object *intelObj,
struct gl_sampler_object *sampler)
{
struct gl_texture_object *tObj = &intelObj->base;
/* What levels must the tree include at a minimum?
*/
- intel_update_max_level(intel, intelObj, sampler);
+ intel_update_max_level(intelObj, sampler);
firstImage = intel_texture_image(tObj->Image[0][tObj->BaseLevel]);
/* Fallback case: