Lines Matching refs:blob
171 write_program_payload(struct gl_context *ctx, struct blob *blob, in write_program_payload() argument
181 blob_write_uint32(blob, sh_prog->SeparateShader); in write_program_payload()
183 serialize_glsl_program(blob, ctx, sh_prog); in write_program_payload()
197 read_program_payload(struct gl_context *ctx, struct blob_reader *blob, 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()
223 struct blob blob; in _mesa_get_program_binary_length() local
224 blob_init_fixed(&blob, NULL, SIZE_MAX); in _mesa_get_program_binary_length()
225 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary_length()
226 *length = get_program_binary_header_size() + blob.size; in _mesa_get_program_binary_length()
227 blob_finish(&blob); in _mesa_get_program_binary_length()
236 struct blob blob; in _mesa_get_program_binary() local
242 blob_init(&blob); in _mesa_get_program_binary()
247 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary()
248 if (blob.size + header_size > buf_size || in _mesa_get_program_binary()
249 blob.out_of_memory) in _mesa_get_program_binary()
252 bool written = write_program_binary(blob.data, blob.size, driver_sha1, in _mesa_get_program_binary()
254 if (!written || blob.out_of_memory) in _mesa_get_program_binary()
257 *length = header_size + blob.size; in _mesa_get_program_binary()
259 blob_finish(&blob); in _mesa_get_program_binary()
266 blob_finish(&blob); in _mesa_get_program_binary()
287 struct blob_reader blob; in _mesa_program_binary() local
288 blob_reader_init(&blob, payload, length - header_size); in _mesa_program_binary()
299 if (!read_program_payload(ctx, &blob, binary_format, sh_prog)) { in _mesa_program_binary()