Lines Matching refs:shProg
313 write_xfb(struct blob *metadata, struct gl_shader_program *shProg) in write_xfb() argument
315 struct gl_program *prog = shProg->last_vert_prog; in write_xfb()
327 blob_write_uint32(metadata, shProg->TransformFeedback.BufferMode); in write_xfb()
328 blob_write_bytes(metadata, shProg->TransformFeedback.BufferStride, in write_xfb()
329 sizeof(shProg->TransformFeedback.BufferStride)); in write_xfb()
330 blob_write_uint32(metadata, shProg->TransformFeedback.NumVarying); in write_xfb()
331 for (unsigned i = 0; i < shProg->TransformFeedback.NumVarying; i++) in write_xfb()
332 blob_write_string(metadata, shProg->TransformFeedback.VaryingNames[i]); in write_xfb()
356 read_xfb(struct blob_reader *metadata, struct gl_shader_program *shProg) in read_xfb() argument
363 if (shProg->TransformFeedback.VaryingNames) { in read_xfb()
364 for (unsigned i = 0; i < shProg->TransformFeedback.NumVarying; ++i) in read_xfb()
365 free(shProg->TransformFeedback.VaryingNames[i]); in read_xfb()
369 shProg->TransformFeedback.BufferMode = blob_read_uint32(metadata); in read_xfb()
370 blob_copy_bytes(metadata, &shProg->TransformFeedback.BufferStride, in read_xfb()
371 sizeof(shProg->TransformFeedback.BufferStride)); in read_xfb()
372 shProg->TransformFeedback.NumVarying = blob_read_uint32(metadata); in read_xfb()
374 shProg->TransformFeedback.VaryingNames = (char **) in read_xfb()
375 realloc(shProg->TransformFeedback.VaryingNames, in read_xfb()
376 shProg->TransformFeedback.NumVarying * sizeof(GLchar *)); in read_xfb()
378 for (unsigned i = 0; i < shProg->TransformFeedback.NumVarying; i++) in read_xfb()
379 shProg->TransformFeedback.VaryingNames[i] = in read_xfb()
382 struct gl_program *prog = shProg->_LinkedShaders[xfb_stage]->Program; in read_xfb()
387 shProg->last_vert_prog = prog; in read_xfb()