mesa: Delete ctx->GeometryProgram.Cache.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Aug 2014 03:14:54 +0000 (20:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 30 Aug 2014 05:13:37 +0000 (22:13 -0700)
The VertexProgram and FragmentProgram have a Cache member for dealing
with fixed function programs.  There are no fixed function geometry
programs, so this should never have existed, and was just copy and
pasted.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/mtypes.h
src/mesa/program/program.c

index adb6788e3b8f5d5e6bba72190f65c41698690325..dc25ea4678c642b69e5c4c84fb018ddca6f00957 100644 (file)
@@ -2317,9 +2317,6 @@ struct gl_geometry_program_state
    struct gl_geometry_program *_Current;
 
    GLfloat Parameters[MAX_PROGRAM_ENV_PARAMS][4]; /**< Env params */
-
-   /** Cache of fixed-function programs */
-   struct gl_program_cache *Cache;
 };
 
 /**
index ef5bf6b1167c8904f04efcad1c49443d5465270d..6e17fe65f7e0eccb95b20569044818fea6d1e0e2 100644 (file)
@@ -100,7 +100,6 @@ _mesa_init_program(struct gl_context *ctx)
    /* right now by default we don't have a geometry program */
    _mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current,
                             NULL);
-   ctx->GeometryProgram.Cache = _mesa_new_program_cache();
 
    /* XXX probably move this stuff */
    ctx->ATIFragmentShader.Enabled = GL_FALSE;
@@ -121,7 +120,6 @@ _mesa_free_program_data(struct gl_context *ctx)
    _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, NULL);
    _mesa_delete_shader_cache(ctx, ctx->FragmentProgram.Cache);
    _mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current, NULL);
-   _mesa_delete_program_cache(ctx, ctx->GeometryProgram.Cache);
 
    /* XXX probably move this stuff */
    if (ctx->ATIFragmentShader.Current) {