• Home
  • Raw
  • Download

Lines Matching refs:sh_prog

172                       struct gl_shader_program *sh_prog)  in write_program_payload()  argument
175 struct gl_linked_shader *shader = sh_prog->_LinkedShaders[stage]; in write_program_payload()
177 ctx->Driver.ProgramBinarySerializeDriverBlob(ctx, sh_prog, in write_program_payload()
181 blob_write_uint32(blob, sh_prog->SeparateShader); in write_program_payload()
183 serialize_glsl_program(blob, ctx, sh_prog); in write_program_payload()
186 struct gl_linked_shader *shader = sh_prog->_LinkedShaders[stage]; in write_program_payload()
188 struct gl_program *prog = sh_prog->_LinkedShaders[stage]->Program; in write_program_payload()
198 GLenum binary_format, struct gl_shader_program *sh_prog) in read_program_payload() argument
200 sh_prog->SeparateShader = blob_read_uint32(blob); in read_program_payload()
202 if (!deserialize_glsl_program(blob, ctx, sh_prog)) in read_program_payload()
206 for (stage = 0; stage < ARRAY_SIZE(sh_prog->_LinkedShaders); stage++) { in read_program_payload()
207 struct gl_linked_shader *shader = sh_prog->_LinkedShaders[stage]; in read_program_payload()
211 ctx->Driver.ProgramBinaryDeserializeDriverBlob(ctx, sh_prog, in read_program_payload()
220 struct gl_shader_program *sh_prog, in _mesa_get_program_binary_length() argument
225 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary_length()
232 struct gl_shader_program *sh_prog, in _mesa_get_program_binary() argument
247 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary()
270 _mesa_program_binary(struct gl_context *ctx, struct gl_shader_program *sh_prog, in _mesa_program_binary() argument
283 sh_prog->data->LinkStatus = LINKING_FAILURE; in _mesa_program_binary()
294 ctx->_Shader->CurrentProgram[stage]->Id == sh_prog->Name) { in _mesa_program_binary()
299 if (!read_program_payload(ctx, &blob, binary_format, sh_prog)) { in _mesa_program_binary()
300 sh_prog->data->LinkStatus = LINKING_FAILURE; in _mesa_program_binary()
318 if (sh_prog->_LinkedShaders[stage]) in _mesa_program_binary()
319 prog = sh_prog->_LinkedShaders[stage]->Program; in _mesa_program_binary()
321 _mesa_use_program(ctx, stage, sh_prog, prog, ctx->_Shader); in _mesa_program_binary()
324 sh_prog->data->LinkStatus = LINKING_SKIPPED; in _mesa_program_binary()