| /xsrc/external/mit/MesaLib.old/dist/src/compiler/ |
| H A D | blob.c | 27 #include "blob.h" 39 /* Ensure that \blob will be able to fit an additional object of size 44 grow_to_fit(struct blob *blob, size_t additional) argument 49 if (blob->out_of_memory) 52 if (blob->size + additional <= blob->allocated) 55 if (blob->fixed_allocation) { 56 blob->out_of_memory = true; 60 if (blob 86 align_blob(struct blob * blob,size_t alignment) argument 103 align_blob_reader(struct blob_reader * blob,size_t alignment) argument 109 blob_init(struct blob * blob) argument 119 blob_init_fixed(struct blob * blob,void * data,size_t size) argument 129 blob_overwrite_bytes(struct blob * blob,size_t offset,const void * bytes,size_t to_write) argument 147 blob_write_bytes(struct blob * blob,const void * bytes,size_t to_write) argument 162 blob_reserve_bytes(struct blob * blob,size_t to_write) argument 176 blob_reserve_uint32(struct blob * blob) argument 183 blob_reserve_intptr(struct blob * blob) argument 190 blob_write_uint32(struct blob * blob,uint32_t value) argument 201 blob_overwrite_uint32(struct blob * blob,size_t offset,uint32_t value) argument 210 blob_write_uint64(struct blob * blob,uint64_t value) argument 218 blob_write_intptr(struct blob * blob,intptr_t value) argument 226 blob_overwrite_intptr(struct blob * blob,size_t offset,intptr_t value) argument 235 blob_write_string(struct blob * blob,const char * str) argument 241 blob_reader_init(struct blob_reader * blob,const void * data,size_t size) argument 254 ensure_can_read(struct blob_reader * blob,size_t size) argument 268 blob_read_bytes(struct blob_reader * blob,size_t size) argument 283 blob_copy_bytes(struct blob_reader * blob,void * dest,size_t size) argument 295 blob_skip_bytes(struct blob_reader * blob,size_t size) argument 306 blob_read_uint32(struct blob_reader * blob) argument 324 blob_read_uint64(struct blob_reader * blob) argument 342 blob_read_intptr(struct blob_reader * blob) argument 360 blob_read_string(struct blob_reader * blob) argument [all...] |
| H A D | blob.h | 36 /* The blob functions implement a simple, low-level API for serializing and 39 * All objects written to a blob will be serialized directly, (without any 42 * by knowing exactly what data is expected, or by writing to the blob 45 * A blob is efficient in that it dynamically grows by doubling in size, so 49 struct blob { struct 50 /* The data actually written to the blob. */ 67 * allocation blob. 75 * 1. blob->current should be equal to blob->end, (if not, too little was 78 * 2. blob 114 blob_finish(struct blob * blob) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| H A D | blob.c | 26 #include "blob.h" 39 /* Ensure that \blob will be able to fit an additional object of size 44 grow_to_fit(struct blob *blob, size_t additional) argument 49 if (blob->out_of_memory) 52 if (blob->size + additional <= blob->allocated) 55 if (blob->fixed_allocation) { 56 blob->out_of_memory = true; 60 if (blob 86 align_blob(struct blob * blob,size_t alignment) argument 103 align_blob_reader(struct blob_reader * blob,size_t alignment) argument 109 blob_init(struct blob * blob) argument 119 blob_init_fixed(struct blob * blob,void * data,size_t size) argument 129 blob_finish_get_buffer(struct blob * blob,void ** buffer,size_t * size) argument 140 blob_overwrite_bytes(struct blob * blob,size_t offset,const void * bytes,size_t to_write) argument 158 blob_write_bytes(struct blob * blob,const void * bytes,size_t to_write) argument 173 blob_reserve_bytes(struct blob * blob,size_t to_write) argument 187 blob_reserve_uint32(struct blob * blob) argument 194 blob_reserve_intptr(struct blob * blob) argument 227 blob_overwrite_uint32(struct blob * blob,size_t offset,uint32_t value) argument 236 blob_overwrite_intptr(struct blob * blob,size_t offset,intptr_t value) argument 245 blob_write_string(struct blob * blob,const char * str) argument 251 blob_reader_init(struct blob_reader * blob,const void * data,size_t size) argument 264 ensure_can_read(struct blob_reader * blob,size_t size) argument 278 blob_read_bytes(struct blob_reader * blob,size_t size) argument 293 blob_copy_bytes(struct blob_reader * blob,void * dest,size_t size) argument 305 blob_skip_bytes(struct blob_reader * blob,size_t size) argument [all...] |
| H A D | blob.h | 36 /* The blob functions implement a simple, low-level API for serializing and 39 * All objects written to a blob will be serialized directly, (without any 42 * by knowing exactly what data is expected, or by writing to the blob 45 * A blob is efficient in that it dynamically grows by doubling in size, so 49 struct blob { struct 50 /* The data actually written to the blob. */ 67 * allocation blob. 75 * 1. blob->current should be equal to blob->end, (if not, too little was 78 * 2. blob 114 blob_finish(struct blob * blob) argument [all...] |
| H A D | blob_test.c | 24 /* A collection of unit tests for blob.c */ 37 #include "blob.h" 125 struct blob blob; local in function:test_write_and_read_functions 131 blob_init(&blob); 133 /*** Test blob by writing one of every possible kind of value. */ 135 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); 137 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); 138 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); 141 str_offset = blob 198 struct blob blob; local in function:test_alignment 256 struct blob blob; local in function:test_overrun 281 struct blob blob; local in function:test_big_objects [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| H A D | nir_serialize.h | 28 #include "util/blob.h" 34 void nir_serialize(struct blob *blob, const nir_shader *nir, bool strip); 37 struct blob_reader *blob);
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| H A D | nir_serialize.h | 28 #include "compiler/blob.h" 34 void nir_serialize(struct blob *blob, const nir_shader *nir); 37 struct blob_reader *blob);
|
| H A D | nir_serialize.c | 37 struct blob *blob; member in struct:__anon144c3b4c0208 54 struct blob_reader *blob; member in struct:__anon144c3b4c0308 88 blob_write_intptr(ctx->blob, write_lookup_object(ctx, obj)); 108 return read_lookup_object(ctx, blob_read_intptr(ctx->blob)); 114 blob_write_bytes(ctx->blob, c->values, sizeof(c->values)); 115 blob_write_uint32(ctx->blob, c->num_elements); 125 blob_copy_bytes(ctx->blob, (uint8_t *)c->values, sizeof(c->values)); 126 c->num_elements = blob_read_uint32(ctx->blob); 138 encode_type_to_blob(ctx->blob, va 1089 nir_serialize(struct blob * blob,const nir_shader * nir) argument 1147 nir_deserialize(void * mem_ctx,const struct nir_shader_compiler_options * options,struct blob_reader * blob) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| H A D | serialize.h | 29 struct blob; 39 serialize_glsl_program(struct blob *blob, struct gl_context *ctx, 43 deserialize_glsl_program(struct blob_reader *blob, struct gl_context *ctx,
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| H A D | serialize.h | 29 struct blob; 39 serialize_glsl_program(struct blob *blob, struct gl_context *ctx, 43 deserialize_glsl_program(struct blob_reader *blob, struct gl_context *ctx,
|
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| H A D | ir3_disk_cache.c | 82 /* Serialize the NIR to a binary blob that we can hash for the disk 87 struct blob blob; local in function:ir3_disk_cache_init_shader_key 88 blob_init(&blob); 89 nir_serialize(&blob, shader->nir, true); 90 _mesa_sha1_update(&ctx, blob.data, blob.size); 91 blob_finish(&blob); 106 struct blob blob; local in function:compute_variant_key 120 retrieve_variant(struct blob_reader * blob,struct ir3_shader_variant * v) argument 141 store_variant(struct blob * blob,struct ir3_shader_variant * v) argument 187 struct blob_reader blob; local in function:ir3_disk_cache_retrieve 217 struct blob blob; local in function:ir3_disk_cache_store [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_disk_cache.c | 66 /* Serialize the NIR to a binary blob that we can hash for the disk 71 struct blob blob; local in function:etna_disk_cache_init_shader_key 73 blob_init(&blob); 74 nir_serialize(&blob, shader->nir, true); 75 _mesa_sha1_update(&ctx, blob.data, blob.size); 76 blob_finish(&blob); 85 struct blob blob; local in function:compute_variant_key 98 retrieve_variant(struct blob_reader * blob,struct etna_shader_variant * v) argument 114 store_variant(struct blob * blob,const struct etna_shader_variant * v) argument 152 struct blob_reader blob; local in function:etna_disk_cache_retrieve 179 struct blob blob; local in function:etna_disk_cache_store [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/ |
| H A D | blob_test.c | 24 /* A collection of unit tests for blob.c */ 37 #include "blob.h" 125 struct blob blob; local in function:test_write_and_read_functions 131 blob_init(&blob); 133 /*** Test blob by writing one of every possible kind of value. */ 135 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); 137 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); 138 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); 141 str_offset = blob 198 struct blob blob; local in function:test_alignment 256 struct blob blob; local in function:test_overrun 281 struct blob blob; local in function:test_big_objects [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/ |
| H A D | lima_disk_cache.c | 27 #include "util/blob.h" 53 struct blob blob; local in function:lima_vs_disk_cache_store 54 blob_init(&blob); 56 blob_write_bytes(&blob, &shader->state, sizeof(shader->state)); 57 blob_write_bytes(&blob, shader->shader, shader->state.shader_size); 58 blob_write_bytes(&blob, shader->constant, shader->state.constant_size); 60 disk_cache_put(cache, cache_key, blob.data, blob.size, NULL); 61 blob_finish(&blob); 81 struct blob blob; local in function:lima_fs_disk_cache_store 122 struct blob_reader blob; local in function:lima_vs_disk_cache_retrieve 174 struct blob_reader blob; local in function:lima_fs_disk_cache_retrieve [all...] |
| /xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/ |
| H A D | nir_to_dxil.h | 35 struct blob; 58 struct blob *blob);
|
| H A D | dxil_buffer.h | 27 #include "util/blob.h" 30 struct blob blob; member in struct:dxil_buffer
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/ |
| H A D | nv50_ir_serialize.cpp | 1 #include "util/blob.h" 22 nv50_ir_prog_info_serialize(struct blob *blob, struct nv50_ir_prog_info *info) argument 24 blob_write_uint32(blob, info->bin.smemSize); 25 blob_write_uint16(blob, info->target); 26 blob_write_uint8(blob, info->type); 27 blob_write_uint8(blob, info->optLevel); 28 blob_write_uint8(blob, info->dbgFlags); 29 blob_write_uint8(blob, info->omitLineNum); 30 blob_write_uint8(blob, inf 61 nv50_ir_prog_info_out_serialize(struct blob * blob,struct nv50_ir_prog_info_out * info_out) argument [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| H A D | st_shader_cache.c | 44 write_stream_out_to_cache(struct blob *blob, argument 47 blob_write_uint32(blob, state->stream_output.num_outputs); 49 blob_write_bytes(blob, &state->stream_output.stride, 51 blob_write_bytes(blob, &state->stream_output.output, 57 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) argument 59 prog->driver_cache_blob = ralloc_size(NULL, blob->size); 60 memcpy(prog->driver_cache_blob, blob->data, blob 65 write_tgsi_to_cache(struct blob * blob,const struct tgsi_token * tokens,struct gl_program * prog) argument 76 write_nir_to_cache(struct blob * blob,struct gl_program * prog) argument 96 struct blob blob; local in function:st_serialise_ir_program [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| H A D | program_binary.c | 32 #include "compiler/blob.h" 171 write_program_payload(struct gl_context *ctx, struct blob *blob, argument 181 blob_write_uint32(blob, sh_prog->SeparateShader); 183 serialize_glsl_program(blob, ctx, sh_prog); 197 read_program_payload(struct gl_context *ctx, struct blob_reader *blob, argument 200 sh_prog->SeparateShader = blob_read_uint32(blob); 202 if (!deserialize_glsl_program(blob, ctx, sh_prog)) 223 struct blob blob; local in function:_mesa_get_program_binary_length 236 struct blob blob; local in function:_mesa_get_program_binary 287 struct blob_reader blob; local in function:_mesa_program_binary [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/main/ |
| H A D | program_binary.c | 37 #include "util/blob.h" 171 write_program_payload(struct gl_context *ctx, struct blob *blob, argument 181 blob_write_uint32(blob, sh_prog->SeparateShader); 183 serialize_glsl_program(blob, ctx, sh_prog); 197 read_program_payload(struct gl_context *ctx, struct blob_reader *blob, argument 200 sh_prog->SeparateShader = blob_read_uint32(blob); 202 if (!deserialize_glsl_program(blob, ctx, sh_prog)) 223 struct blob blob; local in function:_mesa_get_program_binary_length 236 struct blob blob; local in function:_mesa_get_program_binary 287 struct blob_reader blob; local in function:_mesa_program_binary [all...] |
| /xsrc/external/mit/MesaLib/dist/src/broadcom/vulkan/ |
| H A D | v3dv_pipeline_cache.c | 26 #include "util/blob.h" 99 struct blob blob; local in function:v3dv_pipeline_cache_upload_nir 100 blob_init(&blob); 102 nir_serialize(&blob, nir, false); 103 if (blob.out_of_memory) { 104 blob_finish(&blob); 115 blob_finish(&blob); 121 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); 123 snir->size = blob 168 struct blob_reader blob; local in function:v3dv_pipeline_cache_search_for_nir 313 struct blob_reader blob; local in function:v3dv_pipeline_cache_search_for_pipeline 491 serialized_nir_create_from_blob(struct v3dv_pipeline_cache * cache,struct blob_reader * blob) argument 510 shader_variant_create_from_blob(struct v3dv_device * device,struct blob_reader * blob) argument 561 v3dv_pipeline_shared_data_create_from_blob(struct v3dv_pipeline_cache * cache,struct blob_reader * blob) argument 627 struct blob_reader blob; local in function:pipeline_cache_load 833 shader_variant_write_to_blob(const struct v3dv_shader_variant * variant,struct blob * blob) argument 853 v3dv_pipeline_shared_data_write_to_blob(const struct v3dv_pipeline_shared_data * cache_entry,struct blob * blob) argument 930 struct blob blob; local in function:v3dv_GetPipelineCacheData [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/iris/ |
| H A D | iris_disk_cache.c | 35 #include "util/blob.h" 100 struct blob blob; local in function:iris_disk_cache_store 101 blob_init(&blob); 103 /* We write the following data to the cache blob: 114 blob_write_bytes(&blob, shader->prog_data, brw_prog_data_size(stage)); 115 blob_write_bytes(&blob, shader->map, shader->prog_data->program_size); 116 blob_write_uint32(&blob, shader->num_system_values); 117 blob_write_bytes(&blob, shader->system_values, 119 blob_write_uint32(&blob, shade 186 struct blob_reader blob; local in function:iris_disk_cache_retrieve [all...] |
| /xsrc/external/mit/MesaLib/dist/src/intel/vulkan/ |
| H A D | anv_pipeline_cache.c | 24 #include "util/blob.h" 163 struct blob *blob) 165 blob_write_uint32(blob, shader->stage); 167 blob_write_uint32(blob, shader->key->size); 168 blob_write_bytes(blob, shader->key->data, shader->key->size); 170 blob_write_uint32(blob, shader->kernel_size); 171 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); 173 blob_write_uint32(blob, shader->prog_data_size); 174 blob_write_bytes(blob, shade 162 anv_shader_bin_write_to_blob(const struct anv_shader_bin * shader,struct blob * blob) argument 213 anv_shader_bin_create_from_blob(struct anv_device * device,struct blob_reader * blob) argument 509 struct blob_reader blob; local in function:anv_pipeline_cache_load 594 struct blob blob; local in function:anv_GetPipelineCacheData 702 struct blob_reader blob; local in function:anv_device_search_for_kernel 793 struct blob_reader blob; local in function:anv_device_search_for_nir 822 struct blob blob; local in function:anv_device_upload_nir [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| H A D | st_shader_cache.c | 43 write_stream_out_to_cache(struct blob *blob, argument 46 blob_write_bytes(blob, &tgsi->stream_output, 51 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) argument 53 prog->driver_cache_blob = ralloc_size(NULL, blob->size); 54 memcpy(prog->driver_cache_blob, blob->data, blob->size); 55 prog->driver_cache_blob_size = blob->size; 59 write_tgsi_to_cache(struct blob *blo argument 68 write_nir_to_cache(struct blob * blob,struct gl_program * prog) argument 81 struct blob blob; local in function:st_serialise_ir_program [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/crocus/ |
| H A D | crocus_disk_cache.c | 35 #include "util/blob.h" 101 struct blob blob; local in function:crocus_disk_cache_store 102 blob_init(&blob); 104 /* We write the following data to the cache blob: 113 blob_write_bytes(&blob, shader->prog_data, brw_prog_data_size(stage)); 114 blob_write_bytes(&blob, map + shader->offset, shader->prog_data->program_size); 115 blob_write_bytes(&blob, &shader->num_system_values, sizeof(unsigned)); 116 blob_write_bytes(&blob, shader->system_values, 118 blob_write_bytes(&blob, prog_dat 171 struct blob_reader blob; local in function:crocus_disk_cache_retrieve [all...] |