Searched refs:newProg (Results 1 – 2 of 2) sorted by relevance
/third_party/mesa3d/src/mesa/main/ |
D | arbprogram.c | 69 struct gl_program* newProg; in lookup_or_create_program() local 74 newProg = ctx->Shared->DefaultVertexProgram; in lookup_or_create_program() 76 newProg = ctx->Shared->DefaultFragmentProgram; in lookup_or_create_program() 80 newProg = _mesa_lookup_program(ctx, id); in lookup_or_create_program() 81 if (!newProg || newProg == &_mesa_DummyProgram) { in lookup_or_create_program() 82 bool isGenName = newProg != NULL; in lookup_or_create_program() 84 newProg = ctx->Driver.NewProgram(ctx, _mesa_program_enum_to_shader_stage(target), in lookup_or_create_program() 86 if (!newProg) { in lookup_or_create_program() 90 _mesa_HashInsert(ctx->Shared->Programs, id, newProg, isGenName); in lookup_or_create_program() 92 else if (newProg->Target != target) { in lookup_or_create_program() [all …]
|
D | atifragshader.c | 236 struct ati_fragment_shader *newProg; in _mesa_BindFragmentShaderATI() local 259 newProg = ctx->Shared->DefaultFragmentShader; in _mesa_BindFragmentShaderATI() 263 newProg = (struct ati_fragment_shader *) in _mesa_BindFragmentShaderATI() 265 isGenName = newProg != NULL; in _mesa_BindFragmentShaderATI() 266 if (!newProg || newProg == &DummyShader) { in _mesa_BindFragmentShaderATI() 268 newProg = _mesa_new_ati_fragment_shader(ctx, id); in _mesa_BindFragmentShaderATI() 269 if (!newProg) { in _mesa_BindFragmentShaderATI() 273 _mesa_HashInsert(ctx->Shared->ATIShaders, id, newProg, isGenName); in _mesa_BindFragmentShaderATI() 279 ctx->ATIFragmentShader.Current = newProg; in _mesa_BindFragmentShaderATI() 282 if (newProg) in _mesa_BindFragmentShaderATI() [all …]
|