diff options
author | Eric Anholt <eric@anholt.net> | 2010-11-01 13:16:21 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-10-18 10:54:32 -0700 |
commit | 7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a (patch) | |
tree | 8e1bb41c346e163be51973f04b8c244352dd051c /src/mesa/program/program.c | |
parent | 57f7978b1de40be6eb138d391c8d9f95b68cbf62 (diff) | |
download | external_mesa3d-7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a.zip external_mesa3d-7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a.tar.gz external_mesa3d-7ec2b0d0d6b6a0f760e55ffdee0bdb385a3e900a.tar.bz2 |
mesa: Convert fixed function fragment program generator to GLSL IR.
This is a step towards providing a direct route for drivers accepting
GLSL IR for codegen. Perhaps more importantly, it runs the fixed
function fragment program through the GLSL IR optimization. Having
seen how easy it is to make ugly fixed function texenv code that can
do unnecessary work, this may improve real applicatinos.
Diffstat (limited to 'src/mesa/program/program.c')
-rw-r--r-- | src/mesa/program/program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 4d6c60b..7366525 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -140,7 +140,7 @@ _mesa_free_program_data(struct gl_context *ctx) #endif #if FEATURE_NV_fragment_program || FEATURE_ARB_fragment_program _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, NULL); - _mesa_delete_program_cache(ctx, ctx->FragmentProgram.Cache); + _mesa_delete_shader_cache(ctx, ctx->FragmentProgram.Cache); #endif #if FEATURE_ARB_geometry_shader4 _mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current, NULL); |