| /xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/ |
| 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/lima/ |
| lima_disk_cache.c | 27 #include "util/blob.h" 53 struct blob blob; local 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 122 struct blob_reader blob; local 174 struct blob_reader blob; local [all...] |
| lima_program.c | 403 /* Serialize the NIR to a binary blob that we can hash for the disk 408 struct blob blob; local 409 blob_init(&blob); 410 nir_serialize(&blob, nir, true); 411 _mesa_sha1_compute(blob.data, blob.size, so->nir_sha1); 412 blob_finish(&blob); 646 /* Serialize the NIR to a binary blob that we can hash for the disk 651 struct blob blob local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| 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->overrun should be false, (otherwise, too much was read) [all...] |
| blob_test.c | 24 /* A collection of unit tests for blob.c */ 37 #include "blob.h" 125 struct blob blob; local 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.size 198 struct blob blob; local 256 struct blob blob; local 281 struct blob blob; local [all...] |
| disk_cache.c | 421 void *blob = malloc(max_blob_size); local 422 if (!blob) 426 cache->blob_get_cb(key, CACHE_KEY_SIZE, blob, max_blob_size); 429 free(blob); 435 return blob; 484 uint32_t blob; local 485 return cache->blob_get_cb(key, CACHE_KEY_SIZE, &blob, sizeof(uint32_t));
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/ |
| 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->overrun should be false, (otherwise, too much was read) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| ir3_disk_cache.c | 82 /* Serialize the NIR to a binary blob that we can hash for the disk 87 struct blob blob; local 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 187 struct blob_reader blob; local 217 struct blob blob; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/ |
| u_live_shader_cache.c | 33 #include "util/blob.h" 77 struct blob blob = {0}; local 89 blob_init(&blob); 90 nir_serialize(&blob, state->ir.nir, true); 91 ir_binary = blob.data; 92 ir_size = blob.size; 113 if (ir_binary == blob.data) 114 blob_finish(&blob);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| etnaviv_disk_cache.c | 66 /* Serialize the NIR to a binary blob that we can hash for the disk 71 struct blob blob; local 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 152 struct blob_reader blob; local 179 struct blob blob; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/main/ |
| program_binary.c | 37 #include "util/blob.h" 171 write_program_payload(struct gl_context *ctx, struct blob *blob, 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, 200 sh_prog->SeparateShader = blob_read_uint32(blob); 202 if (!deserialize_glsl_program(blob, ctx, sh_prog)) 223 struct blob blob; local 236 struct blob blob; local 287 struct blob_reader blob; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| st_shader_cache.c | 44 write_stream_out_to_cache(struct blob *blob, 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) 59 prog->driver_cache_blob = ralloc_size(NULL, blob->size); 60 memcpy(prog->driver_cache_blob, blob->data, blob->size) 96 struct blob blob; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| program_binary.c | 32 #include "compiler/blob.h" 171 write_program_payload(struct gl_context *ctx, struct blob *blob, 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, 200 sh_prog->SeparateShader = blob_read_uint32(blob); 202 if (!deserialize_glsl_program(blob, ctx, sh_prog)) 223 struct blob blob; local 236 struct blob blob; local 287 struct blob_reader blob; local [all...] |
| /xsrc/external/mit/libdrm/dist/tests/proptest/ |
| proptest.c | 56 drmModePropertyBlobPtr blob; local 58 blob = drmModeGetPropertyBlob(fd, blob_id); 59 if (!blob) { 64 blob_data = blob->data; 66 for (i = 0; i < blob->length; i++) { 73 drmModeFreePropertyBlob(blob); 106 printf(" blob");
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/ |
| serialize_tests.cpp | 72 struct blob blob; local 75 blob_init(&blob); 77 nir_serialize(&blob, b->shader, false); 78 blob_reader_init(&reader, blob.data, blob.size); 80 blob_finish(&blob);
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/spirv/ |
| nir_load_libclc.c | 264 struct blob_reader blob; local 265 blob_reader_init(&blob, buffer, buffer_size); 266 nir_shader *nir = nir_deserialize(NULL, nir_options, &blob); 302 struct blob blob; local 303 blob_init(&blob); 304 nir_serialize(&blob, nir, false); 305 disk_cache_put(disk_cache, cache_key, blob.data, blob.size, NULL);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/crocus/ |
| crocus_disk_cache.c | 35 #include "util/blob.h" 101 struct blob blob; local 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_data->param 171 struct blob_reader blob; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/iris/ |
| iris_disk_cache.c | 35 #include "util/blob.h" 100 struct blob blob; local 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, shader->kernel_input_size) 186 struct blob_reader blob; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/tests/ |
| blob_test.c | 24 /* A collection of unit tests for blob.c */ 37 #include "blob.h" 125 struct blob blob; local 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.size 198 struct blob blob; local 256 struct blob blob; local 281 struct blob blob; local [all...] |
| cache_test.c | 267 char blob[] = "This is a blob of thirty-seven bytes"; local 279 disk_cache_compute_key(cache, blob, sizeof(blob), blob_key); 287 disk_cache_put(cache, blob_key, blob, sizeof(blob), NULL); 295 expect_equal_str(blob, result, "disk_cache_get of existing item (pointer)"); 296 expect_equal(size, sizeof(blob), "disk_cache_get of existing item (size)"); 338 * directory as the original blob first written to the cache. 386 disk_cache_put(cache, blob_key, blob, sizeof(blob), NULL) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| st_shader_cache.c | 43 write_stream_out_to_cache(struct blob *blob, 46 blob_write_bytes(blob, &tgsi->stream_output, 51 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) 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 *blob, const struct tgsi_token *tokens 81 struct blob blob; local [all...] |
| /xsrc/external/mit/libdrm/dist/radeon/ |
| bof.c | 140 * blob 144 bof_t *blob = bof_object(); local 146 if (blob == NULL) 148 blob->type = BOF_TYPE_BLOB; 149 blob->value = calloc(1, size); 150 if (blob->value == NULL) { 151 bof_decref(blob); 154 blob->size = size; 155 memcpy(blob->value, value, size); 156 blob->size += 12 [all...] |
| radeon_cs_gem.c | 341 bof_t *bcs, *blob, *array, *bo, *size, *handle, *device_id, *root; local 346 root = device_id = bcs = blob = array = bo = size = handle = NULL; 358 blob = bof_blob(csg->nrelocs * 16, csg->relocs); 359 if (blob == NULL) 361 if (bof_object_set(root, "reloc", blob)) 363 bof_decref(blob); 364 blob = NULL; 366 blob = bof_blob(cs->cdw * 4, cs->packets); 367 if (blob == NULL) 369 if (bof_object_set(root, "pm4", blob)) [all...] |
| /xsrc/external/mit/libdrm/dist/tests/modeprint/ |
| modeprint.c | 104 drmModePropertyBlobPtr blob; local 106 blob = drmModeGetPropertyBlob(fd, value); 107 if (blob) { 108 printf("blob is %d length, %08X\n", blob->length, *(uint32_t *)blob->data); 109 drmModeFreePropertyBlob(blob); 111 printf("error getting blob %" PRIu64 "\n", value);
|
| /xsrc/external/mit/MesaLib/dist/src/util/tests/cache/ |
| cache_test.c | 298 char blob[] = "This is a blob of thirty-seven bytes"; local 314 disk_cache_compute_key(cache, blob, sizeof(blob), blob_key); 322 disk_cache_put(cache, blob_key, blob, sizeof(blob), NULL); 328 expect_equal_str(blob, result, "disk_cache_get of existing item (pointer)"); 329 expect_equal(size, sizeof(blob), "disk_cache_get of existing item (size)"); 372 * directory as the original blob first written to the cache. 418 disk_cache_put(cache, blob_key, blob, sizeof(blob), NULL) 535 char blob[] = "This is a blob of thirty-seven bytes"; local [all...] |