Unused since
e4da8b9c331 ("mesa/compiler: rework tear down of
builtin/types").
src/mesa/main/context.c: In function ‘_mesa_free_context_data’:
src/mesa/main/context.c:1321:54: warning: unused parameter ‘destroy_compiler_types’ [-Wunused-parameter]
1321 | _mesa_free_context_data(struct gl_context *ctx, bool destroy_compiler_types)
| ^
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
driDestroyOptionCache(&intel->optionCache);
/* free the Mesa context */
- _mesa_free_context_data(&intel->ctx, true);
+ _mesa_free_context_data(&intel->ctx);
_math_matrix_dtr(&intel->ViewportMatrix);
driDestroyOptionCache(&brw->optionCache);
/* free the Mesa context */
- _mesa_free_context_data(&brw->ctx, true);
+ _mesa_free_context_data(&brw->ctx);
ralloc_free(brw);
driContextPriv->driverPrivate = NULL;
nouveau_object_del(&nctx->hw.chan);
nouveau_scratch_destroy(ctx);
- _mesa_free_context_data(ctx, true);
+ _mesa_free_context_data(ctx);
}
void
/* free atom list */
/* free the Mesa context data */
- _mesa_free_context_data(&radeon->glCtx, true);
+ _mesa_free_context_data(&radeon->glCtx);
/* free the option cache */
driDestroyOptionCache(&radeon->optionCache);
osmesa->gl_buffer = _mesa_create_framebuffer(osmesa->gl_visual);
if (!osmesa->gl_buffer) {
_mesa_destroy_visual( osmesa->gl_visual );
- _mesa_free_context_data(&osmesa->mesa, true);
+ _mesa_free_context_data(&osmesa->mesa);
free(osmesa);
return NULL;
}
!_tnl_CreateContext( ctx ) ||
!_swsetup_CreateContext( ctx )) {
_mesa_destroy_visual(osmesa->gl_visual);
- _mesa_free_context_data(ctx, true);
+ _mesa_free_context_data(ctx);
free(osmesa);
return NULL;
}
if (ctx->Version < version_major * 10 + version_minor) {
_mesa_destroy_visual(osmesa->gl_visual);
- _mesa_free_context_data(ctx, true);
+ _mesa_free_context_data(ctx);
free(osmesa);
return NULL;
}
_mesa_destroy_visual( osmesa->gl_visual );
_mesa_reference_framebuffer( &osmesa->gl_buffer, NULL );
- _mesa_free_context_data(&osmesa->mesa, true);
+ _mesa_free_context_data(&osmesa->mesa);
free( osmesa );
}
}
!_vbo_CreateContext( mesaCtx ) ||
!_tnl_CreateContext( mesaCtx ) ||
!_swsetup_CreateContext( mesaCtx )) {
- _mesa_free_context_data(&c->mesa, true);
+ _mesa_free_context_data(&c->mesa);
free(c);
return NULL;
}
_swrast_DestroyContext( mesaCtx );
_tnl_DestroyContext( mesaCtx );
_vbo_DestroyContext( mesaCtx );
- _mesa_free_context_data(mesaCtx, true);
+ _mesa_free_context_data(mesaCtx);
free( c );
}
* \sa _mesa_initialize_context() and init_attrib_groups().
*/
void
-_mesa_free_context_data(struct gl_context *ctx, bool destroy_compiler_types)
+_mesa_free_context_data(struct gl_context *ctx)
{
if (!_mesa_get_current_context()){
/* No current context, but we may need one in order to delete
_mesa_destroy_context( struct gl_context *ctx )
{
if (ctx) {
- _mesa_free_context_data(ctx, true);
+ _mesa_free_context_data(ctx);
free( (void *) ctx );
}
}
const struct dd_function_table *driverFunctions);
extern void
-_mesa_free_context_data(struct gl_context *ctx, bool destroy_compiler_types);
+_mesa_free_context_data(struct gl_context *ctx);
extern void
_mesa_destroy_context( struct gl_context *ctx );
st_destroy_program_variants(st);
- _mesa_free_context_data(ctx, false);
+ _mesa_free_context_data(ctx);
/* This will free the st_context too, so 'st' must not be accessed
* afterwards. */