Lines Matching full:metadata
43 write_subroutines(struct blob *metadata, struct gl_shader_program *prog) in write_subroutines() argument
52 blob_write_uint32(metadata, glprog->sh.NumSubroutineUniforms); in write_subroutines()
53 blob_write_uint32(metadata, glprog->sh.MaxSubroutineFunctionIndex); in write_subroutines()
54 blob_write_uint32(metadata, glprog->sh.NumSubroutineFunctions); in write_subroutines()
58 blob_write_string(metadata, glprog->sh.SubroutineFunctions[j].name); in write_subroutines()
59 blob_write_uint32(metadata, glprog->sh.SubroutineFunctions[j].index); in write_subroutines()
60 blob_write_uint32(metadata, num_types); in write_subroutines()
63 encode_type_to_blob(metadata, in write_subroutines()
71 read_subroutines(struct blob_reader *metadata, struct gl_shader_program *prog) in read_subroutines() argument
82 glprog->sh.NumSubroutineUniforms = blob_read_uint32(metadata); in read_subroutines()
83 glprog->sh.MaxSubroutineFunctionIndex = blob_read_uint32(metadata); in read_subroutines()
84 glprog->sh.NumSubroutineFunctions = blob_read_uint32(metadata); in read_subroutines()
91 subs[j].name = ralloc_strdup(prog, blob_read_string (metadata)); in read_subroutines()
92 subs[j].index = (int) blob_read_uint32(metadata); in read_subroutines()
93 subs[j].num_compat_types = (int) blob_read_uint32(metadata); in read_subroutines()
98 subs[j].types[k] = decode_type_from_blob(metadata); in read_subroutines()
105 write_buffer_block(struct blob *metadata, struct gl_uniform_block *b) in write_buffer_block() argument
107 blob_write_string(metadata, b->Name); in write_buffer_block()
108 blob_write_uint32(metadata, b->NumUniforms); in write_buffer_block()
109 blob_write_uint32(metadata, b->Binding); in write_buffer_block()
110 blob_write_uint32(metadata, b->UniformBufferSize); in write_buffer_block()
111 blob_write_uint32(metadata, b->stageref); in write_buffer_block()
114 blob_write_string(metadata, b->Uniforms[j].Name); in write_buffer_block()
115 blob_write_string(metadata, b->Uniforms[j].IndexName); in write_buffer_block()
116 encode_type_to_blob(metadata, b->Uniforms[j].Type); in write_buffer_block()
117 blob_write_uint32(metadata, b->Uniforms[j].Offset); in write_buffer_block()
122 write_buffer_blocks(struct blob *metadata, struct gl_shader_program *prog) in write_buffer_blocks() argument
124 blob_write_uint32(metadata, prog->data->NumUniformBlocks); in write_buffer_blocks()
125 blob_write_uint32(metadata, prog->data->NumShaderStorageBlocks); in write_buffer_blocks()
128 write_buffer_block(metadata, &prog->data->UniformBlocks[i]); in write_buffer_blocks()
132 write_buffer_block(metadata, &prog->data->ShaderStorageBlocks[i]); in write_buffer_blocks()
142 blob_write_uint32(metadata, glprog->sh.NumUniformBlocks); in write_buffer_blocks()
143 blob_write_uint32(metadata, glprog->info.num_ssbos); in write_buffer_blocks()
148 blob_write_uint32(metadata, offset); in write_buffer_blocks()
154 blob_write_uint32(metadata, offset); in write_buffer_blocks()
160 read_buffer_block(struct blob_reader *metadata, struct gl_uniform_block *b, in read_buffer_block() argument
163 b->Name = ralloc_strdup(prog->data, blob_read_string (metadata)); in read_buffer_block()
164 b->NumUniforms = blob_read_uint32(metadata); in read_buffer_block()
165 b->Binding = blob_read_uint32(metadata); in read_buffer_block()
166 b->UniformBufferSize = blob_read_uint32(metadata); in read_buffer_block()
167 b->stageref = blob_read_uint32(metadata); in read_buffer_block()
174 blob_read_string (metadata)); in read_buffer_block()
176 char *index_name = blob_read_string(metadata); in read_buffer_block()
183 b->Uniforms[j].Type = decode_type_from_blob(metadata); in read_buffer_block()
184 b->Uniforms[j].Offset = blob_read_uint32(metadata); in read_buffer_block()
189 read_buffer_blocks(struct blob_reader *metadata, in read_buffer_blocks() argument
192 prog->data->NumUniformBlocks = blob_read_uint32(metadata); in read_buffer_blocks()
193 prog->data->NumShaderStorageBlocks = blob_read_uint32(metadata); in read_buffer_blocks()
204 read_buffer_block(metadata, &prog->data->UniformBlocks[i], prog); in read_buffer_blocks()
208 read_buffer_block(metadata, &prog->data->ShaderStorageBlocks[i], prog); in read_buffer_blocks()
218 glprog->sh.NumUniformBlocks = blob_read_uint32(metadata); in read_buffer_blocks()
219 glprog->info.num_ssbos = blob_read_uint32(metadata); in read_buffer_blocks()
227 uint32_t offset = blob_read_uint32(metadata); in read_buffer_blocks()
232 uint32_t offset = blob_read_uint32(metadata); in read_buffer_blocks()
240 write_atomic_buffers(struct blob *metadata, struct gl_shader_program *prog) in write_atomic_buffers() argument
242 blob_write_uint32(metadata, prog->data->NumAtomicBuffers); in write_atomic_buffers()
247 blob_write_uint32(metadata, glprog->info.num_abos); in write_atomic_buffers()
252 blob_write_uint32(metadata, prog->data->AtomicBuffers[i].Binding); in write_atomic_buffers()
253 blob_write_uint32(metadata, prog->data->AtomicBuffers[i].MinimumSize); in write_atomic_buffers()
254 blob_write_uint32(metadata, prog->data->AtomicBuffers[i].NumUniforms); in write_atomic_buffers()
256 blob_write_bytes(metadata, prog->data->AtomicBuffers[i].StageReferences, in write_atomic_buffers()
260 blob_write_uint32(metadata, prog->data->AtomicBuffers[i].Uniforms[j]); in write_atomic_buffers()
266 read_atomic_buffers(struct blob_reader *metadata, in read_atomic_buffers() argument
269 prog->data->NumAtomicBuffers = blob_read_uint32(metadata); in read_atomic_buffers()
279 glprog->info.num_abos = blob_read_uint32(metadata); in read_atomic_buffers()
288 prog->data->AtomicBuffers[i].Binding = blob_read_uint32(metadata); in read_atomic_buffers()
289 prog->data->AtomicBuffers[i].MinimumSize = blob_read_uint32(metadata); in read_atomic_buffers()
290 prog->data->AtomicBuffers[i].NumUniforms = blob_read_uint32(metadata); in read_atomic_buffers()
292 blob_copy_bytes(metadata, in read_atomic_buffers()
300 prog->data->AtomicBuffers[i].Uniforms[j] = blob_read_uint32(metadata); in read_atomic_buffers()
313 write_xfb(struct blob *metadata, struct gl_shader_program *shProg) in write_xfb() argument
318 blob_write_uint32(metadata, ~0u); in write_xfb()
324 blob_write_uint32(metadata, prog->info.stage); 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()
330 blob_write_uint32(metadata, shProg->TransformFeedback.NumVarying); in write_xfb()
332 blob_write_string(metadata, shProg->TransformFeedback.VaryingNames[i]); in write_xfb()
334 blob_write_uint32(metadata, ltf->NumOutputs); in write_xfb()
335 blob_write_uint32(metadata, ltf->ActiveBuffers); in write_xfb()
336 blob_write_uint32(metadata, ltf->NumVarying); in write_xfb()
338 blob_write_bytes(metadata, ltf->Outputs, in write_xfb()
343 blob_write_string(metadata, ltf->Varyings[i].Name); in write_xfb()
344 blob_write_uint32(metadata, ltf->Varyings[i].Type); in write_xfb()
345 blob_write_uint32(metadata, ltf->Varyings[i].BufferIndex); in write_xfb()
346 blob_write_uint32(metadata, ltf->Varyings[i].Size); in write_xfb()
347 blob_write_uint32(metadata, ltf->Varyings[i].Offset); in write_xfb()
350 blob_write_bytes(metadata, ltf->Buffers, in write_xfb()
356 read_xfb(struct blob_reader *metadata, struct gl_shader_program *shProg) in read_xfb() argument
358 unsigned xfb_stage = blob_read_uint32(metadata); 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()
372 shProg->TransformFeedback.NumVarying = blob_read_uint32(metadata); in read_xfb()
380 strdup(blob_read_string(metadata)); in read_xfb()
389 ltf->NumOutputs = blob_read_uint32(metadata); in read_xfb()
390 ltf->ActiveBuffers = blob_read_uint32(metadata); in read_xfb()
391 ltf->NumVarying = blob_read_uint32(metadata); in read_xfb()
396 blob_copy_bytes(metadata, (uint8_t *) ltf->Outputs, in read_xfb()
405 ltf->Varyings[i].Name = ralloc_strdup(prog, blob_read_string(metadata)); in read_xfb()
406 ltf->Varyings[i].Type = blob_read_uint32(metadata); in read_xfb()
407 ltf->Varyings[i].BufferIndex = blob_read_uint32(metadata); in read_xfb()
408 ltf->Varyings[i].Size = blob_read_uint32(metadata); in read_xfb()
409 ltf->Varyings[i].Offset = blob_read_uint32(metadata); in read_xfb()
412 blob_copy_bytes(metadata, (uint8_t *) ltf->Buffers, in read_xfb()
429 write_uniforms(struct blob *metadata, struct gl_shader_program *prog) in write_uniforms() argument
431 blob_write_uint32(metadata, prog->SamplersValidated); in write_uniforms()
432 blob_write_uint32(metadata, prog->data->NumUniformStorage); in write_uniforms()
433 blob_write_uint32(metadata, prog->data->NumUniformDataSlots); in write_uniforms()
436 encode_type_to_blob(metadata, prog->data->UniformStorage[i].type); in write_uniforms()
437 blob_write_uint32(metadata, prog->data->UniformStorage[i].array_elements); in write_uniforms()
439 blob_write_string(metadata, prog->data->UniformStorage[i].name); in write_uniforms()
441 blob_write_string(metadata, ""); in write_uniforms()
443 blob_write_uint32(metadata, prog->data->UniformStorage[i].builtin); in write_uniforms()
444 blob_write_uint32(metadata, prog->data->UniformStorage[i].remap_location); in write_uniforms()
445 blob_write_uint32(metadata, prog->data->UniformStorage[i].block_index); in write_uniforms()
446 blob_write_uint32(metadata, prog->data->UniformStorage[i].atomic_buffer_index); in write_uniforms()
447 blob_write_uint32(metadata, prog->data->UniformStorage[i].offset); in write_uniforms()
448 blob_write_uint32(metadata, prog->data->UniformStorage[i].array_stride); in write_uniforms()
449 blob_write_uint32(metadata, prog->data->UniformStorage[i].hidden); in write_uniforms()
450 blob_write_uint32(metadata, prog->data->UniformStorage[i].is_shader_storage); in write_uniforms()
451 blob_write_uint32(metadata, prog->data->UniformStorage[i].active_shader_mask); in write_uniforms()
452 blob_write_uint32(metadata, prog->data->UniformStorage[i].matrix_stride); in write_uniforms()
453 blob_write_uint32(metadata, prog->data->UniformStorage[i].row_major); in write_uniforms()
454 blob_write_uint32(metadata, prog->data->UniformStorage[i].is_bindless); in write_uniforms()
455 blob_write_uint32(metadata, in write_uniforms()
457 blob_write_uint32(metadata, in write_uniforms()
459 blob_write_uint32(metadata, in write_uniforms()
463 blob_write_uint32(metadata, prog->data->UniformStorage[i].storage - in write_uniforms()
467 blob_write_bytes(metadata, prog->data->UniformStorage[i].opaque, in write_uniforms()
476 blob_write_uint32(metadata, prog->data->NumHiddenUniforms); in write_uniforms()
485 blob_write_bytes(metadata, &prog->data->UniformDataDefaults[slot], in write_uniforms()
492 read_uniforms(struct blob_reader *metadata, struct gl_shader_program *prog) in read_uniforms() argument
497 prog->SamplersValidated = blob_read_uint32(metadata); in read_uniforms()
498 prog->data->NumUniformStorage = blob_read_uint32(metadata); in read_uniforms()
499 prog->data->NumUniformDataSlots = blob_read_uint32(metadata); in read_uniforms()
515 uniforms[i].type = decode_type_from_blob(metadata); in read_uniforms()
516 uniforms[i].array_elements = blob_read_uint32(metadata); in read_uniforms()
517 uniforms[i].name = ralloc_strdup(prog, blob_read_string (metadata)); in read_uniforms()
518 uniforms[i].builtin = blob_read_uint32(metadata); in read_uniforms()
519 uniforms[i].remap_location = blob_read_uint32(metadata); in read_uniforms()
520 uniforms[i].block_index = blob_read_uint32(metadata); in read_uniforms()
521 uniforms[i].atomic_buffer_index = blob_read_uint32(metadata); in read_uniforms()
522 uniforms[i].offset = blob_read_uint32(metadata); in read_uniforms()
523 uniforms[i].array_stride = blob_read_uint32(metadata); in read_uniforms()
524 uniforms[i].hidden = blob_read_uint32(metadata); in read_uniforms()
525 uniforms[i].is_shader_storage = blob_read_uint32(metadata); in read_uniforms()
526 uniforms[i].active_shader_mask = blob_read_uint32(metadata); in read_uniforms()
527 uniforms[i].matrix_stride = blob_read_uint32(metadata); in read_uniforms()
528 uniforms[i].row_major = blob_read_uint32(metadata); in read_uniforms()
529 uniforms[i].is_bindless = blob_read_uint32(metadata); in read_uniforms()
530 uniforms[i].num_compatible_subroutines = blob_read_uint32(metadata); in read_uniforms()
531 uniforms[i].top_level_array_size = blob_read_uint32(metadata); in read_uniforms()
532 uniforms[i].top_level_array_stride = blob_read_uint32(metadata); in read_uniforms()
536 uniforms[i].storage = data + blob_read_uint32(metadata); in read_uniforms()
540 blob_read_bytes(metadata, sizeof(uniforms[i].opaque)), in read_uniforms()
545 prog->data->NumHiddenUniforms = blob_read_uint32(metadata); in read_uniforms()
554 blob_copy_bytes(metadata, in read_uniforms()
576 write_uniform_remap_table(struct blob *metadata, in write_uniform_remap_table() argument
581 blob_write_uint32(metadata, num_entries); in write_uniform_remap_table()
588 blob_write_uint32(metadata, remap_type_inactive_explicit_location); in write_uniform_remap_table()
590 blob_write_uint32(metadata, remap_type_null_ptr); in write_uniform_remap_table()
592 blob_write_uint32(metadata, remap_type_uniform_offsets_equal); in write_uniform_remap_table()
605 blob_write_uint32(metadata, offset); in write_uniform_remap_table()
606 blob_write_uint32(metadata, count); in write_uniform_remap_table()
609 blob_write_uint32(metadata, remap_type_uniform_offset); in write_uniform_remap_table()
611 blob_write_uint32(metadata, offset); in write_uniform_remap_table()
617 write_uniform_remap_tables(struct blob *metadata, in write_uniform_remap_tables() argument
620 write_uniform_remap_table(metadata, prog->NumUniformRemapTable, in write_uniform_remap_tables()
627 write_uniform_remap_table(metadata, in write_uniform_remap_tables()
636 read_uniform_remap_table(struct blob_reader *metadata, in read_uniform_remap_table() argument
641 unsigned num = blob_read_uint32(metadata); in read_uniform_remap_table()
649 (enum uniform_remap_type) blob_read_uint32(metadata); in read_uniform_remap_table()
656 uint32_t uni_offset = blob_read_uint32(metadata); in read_uniform_remap_table()
657 uint32_t count = blob_read_uint32(metadata); in read_uniform_remap_table()
664 uint32_t uni_offset = blob_read_uint32(metadata); in read_uniform_remap_table()
672 read_uniform_remap_tables(struct blob_reader *metadata, in read_uniform_remap_tables() argument
676 read_uniform_remap_table(metadata, prog, &prog->NumUniformRemapTable, in read_uniform_remap_tables()
685 read_uniform_remap_table(metadata, prog, in read_uniform_remap_tables()
710 write_hash_table(struct blob *metadata, struct string_to_uint_map *hash) in write_hash_table() argument
715 whte.blob = metadata; in write_hash_table()
718 offset = metadata->size; in write_hash_table()
721 blob_write_uint32 (metadata, 0); in write_hash_table()
726 blob_overwrite_uint32 (metadata, offset, whte.num_entries); in write_hash_table()
730 read_hash_table(struct blob_reader *metadata, struct string_to_uint_map *hash) in read_hash_table() argument
736 num_entries = blob_read_uint32 (metadata); in read_hash_table()
739 key = blob_read_string(metadata); in read_hash_table()
740 value = blob_read_uint32(metadata); in read_hash_table()
747 write_hash_tables(struct blob *metadata, struct gl_shader_program *prog) in write_hash_tables() argument
749 write_hash_table(metadata, prog->AttributeBindings); in write_hash_tables()
750 write_hash_table(metadata, prog->FragDataBindings); in write_hash_tables()
751 write_hash_table(metadata, prog->FragDataIndexBindings); in write_hash_tables()
755 read_hash_tables(struct blob_reader *metadata, struct gl_shader_program *prog) in read_hash_tables() argument
757 read_hash_table(metadata, prog->AttributeBindings); in read_hash_tables()
758 read_hash_table(metadata, prog->FragDataBindings); in read_hash_tables()
759 read_hash_table(metadata, prog->FragDataIndexBindings); in read_hash_tables()
763 write_shader_subroutine_index(struct blob *metadata, in write_shader_subroutine_index() argument
772 blob_write_uint32(metadata, j); in write_shader_subroutine_index()
797 write_program_resource_data(struct blob *metadata, in write_program_resource_data() argument
808 encode_type_to_blob(metadata, var->type); in write_program_resource_data()
809 encode_type_to_blob(metadata, var->interface_type); in write_program_resource_data()
810 encode_type_to_blob(metadata, var->outermost_struct_type); in write_program_resource_data()
813 blob_write_string(metadata, var->name); in write_program_resource_data()
815 blob_write_string(metadata, ""); in write_program_resource_data()
822 blob_write_bytes(metadata, ((char *)var) + s_var_ptrs, in write_program_resource_data()
830 blob_write_uint32(metadata, i); in write_program_resource_data()
839 blob_write_uint32(metadata, i); in write_program_resource_data()
854 blob_write_uint32(metadata, uniform_not_remapped); in write_program_resource_data()
858 blob_write_uint32(metadata, i); in write_program_resource_data()
863 blob_write_uint32(metadata, uniform_remapped); in write_program_resource_data()
864 blob_write_uint32(metadata, ((gl_uniform_storage *)res->Data)->remap_location); in write_program_resource_data()
871 blob_write_uint32(metadata, i); in write_program_resource_data()
880 blob_write_uint32(metadata, i); in write_program_resource_data()
889 blob_write_uint32(metadata, i); in write_program_resource_data()
902 write_shader_subroutine_index(metadata, sh, res); in write_program_resource_data()
910 read_program_resource_data(struct blob_reader *metadata, in read_program_resource_data() argument
921 var->type = decode_type_from_blob(metadata); in read_program_resource_data()
922 var->interface_type = decode_type_from_blob(metadata); in read_program_resource_data()
923 var->outermost_struct_type = decode_type_from_blob(metadata); in read_program_resource_data()
925 var->name = ralloc_strdup(prog, blob_read_string(metadata)); in read_program_resource_data()
930 blob_copy_bytes(metadata, ((uint8_t *) var) + s_var_ptrs, in read_program_resource_data()
937 res->Data = &prog->data->UniformBlocks[blob_read_uint32(metadata)]; in read_program_resource_data()
940 res->Data = &prog->data->ShaderStorageBlocks[blob_read_uint32(metadata)]; in read_program_resource_data()
950 enum uniform_type type = (enum uniform_type) blob_read_uint32(metadata); in read_program_resource_data()
952 res->Data = &prog->data->UniformStorage[blob_read_uint32(metadata)]; in read_program_resource_data()
954 res->Data = prog->UniformRemapTable[blob_read_uint32(metadata)]; in read_program_resource_data()
959 res->Data = &prog->data->AtomicBuffers[blob_read_uint32(metadata)]; in read_program_resource_data()
963 sh.LinkedTransformFeedback->Buffers[blob_read_uint32(metadata)]; in read_program_resource_data()
967 sh.LinkedTransformFeedback->Varyings[blob_read_uint32(metadata)]; in read_program_resource_data()
978 &sh->Program->sh.SubroutineFunctions[blob_read_uint32(metadata)]; in read_program_resource_data()
986 write_program_resource_list(struct blob *metadata, in write_program_resource_list() argument
989 blob_write_uint32(metadata, prog->data->NumProgramResourceList); in write_program_resource_list()
992 blob_write_uint32(metadata, prog->data->ProgramResourceList[i].Type); in write_program_resource_list()
993 write_program_resource_data(metadata, prog, in write_program_resource_list()
995 blob_write_bytes(metadata, in write_program_resource_list()
1002 read_program_resource_list(struct blob_reader *metadata, in read_program_resource_list() argument
1005 prog->data->NumProgramResourceList = blob_read_uint32(metadata); in read_program_resource_list()
1012 prog->data->ProgramResourceList[i].Type = blob_read_uint32(metadata); in read_program_resource_list()
1013 read_program_resource_data(metadata, prog, in read_program_resource_list()
1015 blob_copy_bytes(metadata, in read_program_resource_list()
1022 write_shader_parameters(struct blob *metadata, in write_shader_parameters() argument
1025 blob_write_uint32(metadata, params->NumParameters); in write_shader_parameters()
1030 blob_write_uint32(metadata, param->Type); in write_shader_parameters()
1031 blob_write_string(metadata, param->Name); in write_shader_parameters()
1032 blob_write_uint32(metadata, param->Size); in write_shader_parameters()
1033 blob_write_uint32(metadata, param->Padded); in write_shader_parameters()
1034 blob_write_uint32(metadata, param->DataType); in write_shader_parameters()
1035 blob_write_bytes(metadata, param->StateIndexes, in write_shader_parameters()
1037 blob_write_uint32(metadata, param->UniformStorageIndex); in write_shader_parameters()
1038 blob_write_uint32(metadata, param->MainUniformStorageIndex); in write_shader_parameters()
1043 blob_write_bytes(metadata, params->ParameterValues, in write_shader_parameters()
1046 blob_write_uint32(metadata, params->StateFlags); in write_shader_parameters()
1050 read_shader_parameters(struct blob_reader *metadata, in read_shader_parameters() argument
1055 uint32_t num_parameters = blob_read_uint32(metadata); in read_shader_parameters()
1059 gl_register_file type = (gl_register_file) blob_read_uint32(metadata); in read_shader_parameters()
1060 const char *name = blob_read_string(metadata); in read_shader_parameters()
1061 unsigned size = blob_read_uint32(metadata); in read_shader_parameters()
1062 bool padded = blob_read_uint32(metadata); in read_shader_parameters()
1063 unsigned data_type = blob_read_uint32(metadata); in read_shader_parameters()
1064 blob_copy_bytes(metadata, (uint8_t *) state_indexes, in read_shader_parameters()
1071 param->UniformStorageIndex = blob_read_uint32(metadata); in read_shader_parameters()
1072 param->MainUniformStorageIndex = blob_read_uint32(metadata); in read_shader_parameters()
1077 blob_copy_bytes(metadata, (uint8_t *) params->ParameterValues, in read_shader_parameters()
1080 params->StateFlags = blob_read_uint32(metadata); in read_shader_parameters()
1084 write_shader_metadata(struct blob *metadata, gl_linked_shader *shader) in write_shader_metadata() argument
1090 blob_write_uint64(metadata, glprog->DualSlotInputs); in write_shader_metadata()
1091 blob_write_bytes(metadata, glprog->TexturesUsed, in write_shader_metadata()
1093 blob_write_uint64(metadata, glprog->SamplersUsed); in write_shader_metadata()
1095 blob_write_bytes(metadata, glprog->SamplerUnits, in write_shader_metadata()
1097 blob_write_bytes(metadata, glprog->sh.SamplerTargets, in write_shader_metadata()
1099 blob_write_uint32(metadata, glprog->ShadowSamplers); in write_shader_metadata()
1100 blob_write_uint32(metadata, glprog->ExternalSamplersUsed); in write_shader_metadata()
1101 blob_write_uint32(metadata, glprog->sh.ShaderStorageBlocksWriteAccess); in write_shader_metadata()
1103 blob_write_bytes(metadata, glprog->sh.ImageAccess, in write_shader_metadata()
1105 blob_write_bytes(metadata, glprog->sh.ImageUnits, in write_shader_metadata()
1110 blob_write_uint32(metadata, glprog->sh.NumBindlessSamplers); in write_shader_metadata()
1111 blob_write_uint32(metadata, glprog->sh.HasBoundBindlessSampler); in write_shader_metadata()
1113 blob_write_bytes(metadata, &glprog->sh.BindlessSamplers[i], in write_shader_metadata()
1117 blob_write_uint32(metadata, glprog->sh.NumBindlessImages); in write_shader_metadata()
1118 blob_write_uint32(metadata, glprog->sh.HasBoundBindlessImage); in write_shader_metadata()
1120 blob_write_bytes(metadata, &glprog->sh.BindlessImages[i], in write_shader_metadata()
1124 blob_write_bytes(metadata, &glprog->sh.fs.BlendSupport, in write_shader_metadata()
1127 write_shader_parameters(metadata, glprog->Parameters); in write_shader_metadata()
1131 blob_write_uint32(metadata, (uint32_t)glprog->driver_cache_blob_size); in write_shader_metadata()
1133 blob_write_bytes(metadata, glprog->driver_cache_blob, in write_shader_metadata()
1139 read_shader_metadata(struct blob_reader *metadata, in read_shader_metadata() argument
1145 glprog->DualSlotInputs = blob_read_uint64(metadata); in read_shader_metadata()
1146 blob_copy_bytes(metadata, (uint8_t *) glprog->TexturesUsed, in read_shader_metadata()
1148 glprog->SamplersUsed = blob_read_uint64(metadata); in read_shader_metadata()
1150 blob_copy_bytes(metadata, (uint8_t *) glprog->SamplerUnits, in read_shader_metadata()
1152 blob_copy_bytes(metadata, (uint8_t *) glprog->sh.SamplerTargets, in read_shader_metadata()
1154 glprog->ShadowSamplers = blob_read_uint32(metadata); in read_shader_metadata()
1155 glprog->ExternalSamplersUsed = blob_read_uint32(metadata); in read_shader_metadata()
1156 glprog->sh.ShaderStorageBlocksWriteAccess = blob_read_uint32(metadata); in read_shader_metadata()
1158 blob_copy_bytes(metadata, (uint8_t *) glprog->sh.ImageAccess, in read_shader_metadata()
1160 blob_copy_bytes(metadata, (uint8_t *) glprog->sh.ImageUnits, in read_shader_metadata()
1165 glprog->sh.NumBindlessSamplers = blob_read_uint32(metadata); in read_shader_metadata()
1166 glprog->sh.HasBoundBindlessSampler = blob_read_uint32(metadata); in read_shader_metadata()
1173 blob_copy_bytes(metadata, (uint8_t *) &glprog->sh.BindlessSamplers[i], in read_shader_metadata()
1178 glprog->sh.NumBindlessImages = blob_read_uint32(metadata); in read_shader_metadata()
1179 glprog->sh.HasBoundBindlessImage = blob_read_uint32(metadata); in read_shader_metadata()
1186 blob_copy_bytes(metadata, (uint8_t *) &glprog->sh.BindlessImages[i], in read_shader_metadata()
1191 blob_copy_bytes(metadata, (uint8_t *) &glprog->sh.fs.BlendSupport, in read_shader_metadata()
1195 read_shader_parameters(metadata, glprog->Parameters); in read_shader_metadata()
1197 glprog->driver_cache_blob_size = (size_t)blob_read_uint32(metadata); in read_shader_metadata()
1201 blob_copy_bytes(metadata, glprog->driver_cache_blob, in read_shader_metadata()
1218 struct blob_reader *metadata) in create_linked_shader_and_program() argument
1229 read_shader_metadata(metadata, glprog, linked); in create_linked_shader_and_program()
1231 glprog->info.name = ralloc_strdup(glprog, blob_read_string(metadata)); in create_linked_shader_and_program()
1232 glprog->info.label = ralloc_strdup(glprog, blob_read_string(metadata)); in create_linked_shader_and_program()
1239 blob_copy_bytes(metadata, ((uint8_t *) &glprog->info) + s_info_ptrs, in create_linked_shader_and_program()