[Mesa-dev] [PATCH 01/17] mesa: call ProgramStringNotify for fixed-function vertex programs
Marek Olšák
maraeo at gmail.com
Mon Oct 5 18:26:14 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
Drivers weren't notified about this at all.
This allows disabling on-demand compilation in drivers.
---
src/mesa/main/ffvertex_prog.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c
index a6183b4..34cc921 100644
--- a/src/mesa/main/ffvertex_prog.c
+++ b/src/mesa/main/ffvertex_prog.c
@@ -1690,11 +1690,10 @@ _mesa_get_fixed_func_vertex_program(struct gl_context *ctx)
ctx->Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].OptimizeForAOS,
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTemps );
-#if 0
if (ctx->Driver.ProgramStringNotify)
ctx->Driver.ProgramStringNotify( ctx, GL_VERTEX_PROGRAM_ARB,
&prog->Base );
-#endif
+
_mesa_program_cache_insert(ctx, ctx->VertexProgram.Cache,
&key, sizeof(key), &prog->Base);
}
--
2.1.4
More information about the mesa-dev
mailing list