Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 1302) sorted by relevance

12345678910>>...53

/third_party/skia/third_party/externals/angle2/src/common/spirv/
Dspirv_instruction_builder_autogen.cpp32 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t idCount) in WriteSpirvHeader() argument
45 ASSERT(blob->empty()); in WriteSpirvHeader()
47 blob->push_back(spv::MagicNumber); in WriteSpirvHeader()
48 blob->push_back(0x00010000); in WriteSpirvHeader()
49 blob->push_back(kANGLEGeneratorId << 16 | 0); in WriteSpirvHeader()
50 blob->push_back(idCount); in WriteSpirvHeader()
51 blob->push_back(0x00000000); in WriteSpirvHeader()
54 void WriteNop(Blob *blob) in WriteNop() argument
56 const size_t startSize = blob->size(); in WriteNop()
57 blob->push_back(0); in WriteNop()
[all …]
Dspirv_instruction_builder_autogen.h23 void WriteSpirvHeader(std::vector<uint32_t> *blob, uint32_t idCount);
24 void WriteNop(Blob *blob);
25 void WriteUndef(Blob *blob, IdResultType idResultType, IdResult idResult);
26 void WriteSourceContinued(Blob *blob, LiteralString continuedSource);
27 void WriteSource(Blob *blob,
32 void WriteSourceExtension(Blob *blob, LiteralString extension);
33 void WriteName(Blob *blob, IdRef target, LiteralString name);
34 void WriteMemberName(Blob *blob, IdRef type, LiteralInteger member, LiteralString name);
35 void WriteString(Blob *blob, IdResult idResult, LiteralString string);
36 void WriteLine(Blob *blob, IdRef file, LiteralInteger line, LiteralInteger column);
[all …]
/third_party/mesa3d/src/util/
Dblob.c44 grow_to_fit(struct blob *blob, size_t additional) in grow_to_fit() argument
49 if (blob->out_of_memory) in grow_to_fit()
52 if (blob->size + additional <= blob->allocated) in grow_to_fit()
55 if (blob->fixed_allocation) { in grow_to_fit()
56 blob->out_of_memory = true; in grow_to_fit()
60 if (blob->allocated == 0) in grow_to_fit()
63 to_allocate = blob->allocated * 2; in grow_to_fit()
65 to_allocate = MAX2(to_allocate, blob->allocated + additional); in grow_to_fit()
67 new_data = realloc(blob->data, to_allocate); in grow_to_fit()
69 blob->out_of_memory = true; in grow_to_fit()
[all …]
Dblob.h49 struct blob { struct
94 blob_init(struct blob *blob);
108 blob_init_fixed(struct blob *blob, void *data, size_t size);
117 blob_finish(struct blob *blob) in blob_finish() argument
119 if (!blob->fixed_allocation) in blob_finish()
120 free(blob->data); in blob_finish()
124 blob_finish_get_buffer(struct blob *blob, void **buffer, size_t *size);
134 blob_align(struct blob *blob, size_t alignment);
142 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write);
155 blob_reserve_bytes(struct blob *blob, size_t to_write);
[all …]
/third_party/mesa3d/src/util/tests/
Dblob_test.cpp58 struct blob blob; in TEST() local
64 blob_init(&blob); in TEST()
68 blob_write_bytes(&blob, bytes_test_str, sizeof(bytes_test_str)); in TEST()
70 reserved = blob_reserve_bytes(&blob, sizeof(reserve_test_str)); in TEST()
71 blob_overwrite_bytes(&blob, reserved, reserve_test_str, sizeof(reserve_test_str)); in TEST()
74 str_offset = blob.size; in TEST()
75 blob_write_bytes(&blob, placeholder_str, sizeof(placeholder_str)); in TEST()
77 blob_write_uint32(&blob, uint32_test); in TEST()
80 uint_offset = blob.size; in TEST()
81 blob_write_uint32(&blob, uint32_placeholder); in TEST()
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_disk_cache.c87 struct blob blob; in ir3_disk_cache_init_shader_key() local
88 blob_init(&blob); in ir3_disk_cache_init_shader_key()
89 nir_serialize(&blob, shader->nir, true); in ir3_disk_cache_init_shader_key()
90 _mesa_sha1_update(&ctx, blob.data, blob.size); in ir3_disk_cache_init_shader_key()
91 blob_finish(&blob); in ir3_disk_cache_init_shader_key()
111 struct blob blob; in compute_variant_key() local
112 blob_init(&blob); in compute_variant_key()
114 blob_write_bytes(&blob, &shader->cache_key, sizeof(shader->cache_key)); in compute_variant_key()
115 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key()
116 blob_write_uint8(&blob, v->binning_pass); in compute_variant_key()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_disk_cache.c68 struct blob blob; in etna_disk_cache_init_shader_key() local
70 blob_init(&blob); in etna_disk_cache_init_shader_key()
71 nir_serialize(&blob, shader->nir, true); in etna_disk_cache_init_shader_key()
72 _mesa_sha1_update(&ctx, blob.data, blob.size); in etna_disk_cache_init_shader_key()
73 blob_finish(&blob); in etna_disk_cache_init_shader_key()
82 struct blob blob; in compute_variant_key() local
84 blob_init(&blob); in compute_variant_key()
86 blob_write_bytes(&blob, &v->shader->cache_key, sizeof(v->shader->cache_key)); in compute_variant_key()
87 blob_write_bytes(&blob, &v->key, sizeof(v->key)); in compute_variant_key()
89 disk_cache_compute_key(compiler->disk_cache, blob.data, blob.size, cache_key); in compute_variant_key()
[all …]
/third_party/mesa3d/src/nouveau/codegen/
Dnv50_ir_serialize.cpp22 nv50_ir_prog_info_serialize(struct blob *blob, struct nv50_ir_prog_info *info) in nv50_ir_prog_info_serialize() argument
24 blob_write_uint32(blob, info->bin.smemSize); in nv50_ir_prog_info_serialize()
25 blob_write_uint16(blob, info->target); in nv50_ir_prog_info_serialize()
26 blob_write_uint8(blob, info->type); in nv50_ir_prog_info_serialize()
27 blob_write_uint8(blob, info->optLevel); in nv50_ir_prog_info_serialize()
28 blob_write_uint8(blob, info->dbgFlags); in nv50_ir_prog_info_serialize()
29 blob_write_uint8(blob, info->omitLineNum); in nv50_ir_prog_info_serialize()
30 blob_write_uint8(blob, info->bin.sourceRep); in nv50_ir_prog_info_serialize()
37 blob_write_uint32(blob, num_tokens); in nv50_ir_prog_info_serialize()
38 blob_write_bytes(blob, tokens, num_tokens * sizeof(struct tgsi_token)); in nv50_ir_prog_info_serialize()
[all …]
/third_party/skia/src/gpu/text/
DGrTextBlobCache.cpp24 const SkGlyphRunList& glyphRunList, sk_sp<GrTextBlob> blob) { in addOrReturnExisting() argument
26 blob = this->internalAdd(std::move(blob)); in addOrReturnExisting()
28 return blob; in addOrReturnExisting()
38 sk_sp<GrTextBlob> blob = idEntry->find(key); in find() local
39 GrTextBlob* blobPtr = blob.get(); in find()
44 return blob; in find()
47 void GrTextBlobCache::remove(GrTextBlob* blob) { in remove() argument
49 this->internalRemove(blob); in remove()
52 void GrTextBlobCache::internalRemove(GrTextBlob* blob) { in internalRemove() argument
53 auto id = blob->key().fUniqueID; in internalRemove()
[all …]
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_pipeline_cache.c101 struct blob blob; in v3dv_pipeline_cache_upload_nir() local
102 blob_init(&blob); in v3dv_pipeline_cache_upload_nir()
104 nir_serialize(&blob, nir, false); in v3dv_pipeline_cache_upload_nir()
105 if (blob.out_of_memory) { in v3dv_pipeline_cache_upload_nir()
106 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir()
117 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir()
123 ralloc_size(cache->nir_cache, sizeof(*snir) + blob.size); in v3dv_pipeline_cache_upload_nir()
125 snir->size = blob.size; in v3dv_pipeline_cache_upload_nir()
126 memcpy(snir->data, blob.data, blob.size); in v3dv_pipeline_cache_upload_nir()
128 blob_finish(&blob); in v3dv_pipeline_cache_upload_nir()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-blob.cc82 hb_blob_t *blob = hb_blob_create_or_fail (data, length, mode, in hb_blob_create() local
84 return likely (blob) ? blob : hb_blob_get_empty (); in hb_blob_create()
113 hb_blob_t *blob; in hb_blob_create_or_fail() local
116 !(blob = hb_object_create<hb_blob_t> ())) in hb_blob_create_or_fail()
123 blob->data = data; in hb_blob_create_or_fail()
124 blob->length = length; in hb_blob_create_or_fail()
125 blob->mode = mode; in hb_blob_create_or_fail()
127 blob->user_data = user_data; in hb_blob_create_or_fail()
128 blob->destroy = destroy; in hb_blob_create_or_fail()
130 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create_or_fail()
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-blob.cc91 hb_blob_t *blob; in hb_blob_create() local
95 !(blob = hb_object_create<hb_blob_t> ())) { in hb_blob_create()
101 blob->data = data; in hb_blob_create()
102 blob->length = length; in hb_blob_create()
103 blob->mode = mode; in hb_blob_create()
105 blob->user_data = user_data; in hb_blob_create()
106 blob->destroy = destroy; in hb_blob_create()
108 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create()
109 blob->mode = HB_MEMORY_MODE_READONLY; in hb_blob_create()
110 if (!blob->try_make_writable ()) { in hb_blob_create()
[all …]
/third_party/mesa3d/src/vulkan/runtime/
Dvk_pipeline_cache.c54 struct blob *blob) in raw_data_object_serialize() argument
59 blob_write_bytes(blob, data_obj->data, data_obj->data_size); in raw_data_object_serialize()
68 struct blob_reader *blob) in raw_data_object_deserialize() argument
75 assert(blob->current < blob->end); in raw_data_object_deserialize()
76 size_t data_size = blob->end - blob->current; in raw_data_object_deserialize()
77 const void *data = blob_read_bytes(blob, data_size); in raw_data_object_deserialize()
221 struct blob *blob, uint32_t *data_size) in vk_pipeline_cache_object_serialize() argument
226 assert(blob->size == align64(blob->size, VK_PIPELINE_CACHE_BLOB_ALIGN)); in vk_pipeline_cache_object_serialize()
227 size_t start = blob->size; in vk_pipeline_cache_object_serialize()
235 if (blob->data == NULL && blob->fixed_allocation) { in vk_pipeline_cache_object_serialize()
[all …]
/third_party/harfbuzz/src/
Dhb-blob.cc75 hb_blob_t *blob; in hb_blob_create() local
79 !(blob = hb_object_create<hb_blob_t> ())) { in hb_blob_create()
85 blob->data = data; in hb_blob_create()
86 blob->length = length; in hb_blob_create()
87 blob->mode = mode; in hb_blob_create()
89 blob->user_data = user_data; in hb_blob_create()
90 blob->destroy = destroy; in hb_blob_create()
92 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create()
93 blob->mode = HB_MEMORY_MODE_READONLY; in hb_blob_create()
94 if (!blob->try_make_writable ()) { in hb_blob_create()
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_pipeline_cache.c36 struct blob *blob);
41 struct blob_reader *blob);
185 struct blob *blob) in anv_shader_bin_serialize() argument
190 blob_write_uint32(blob, shader->stage); in anv_shader_bin_serialize()
192 blob_write_uint32(blob, shader->kernel_size); in anv_shader_bin_serialize()
193 blob_write_bytes(blob, shader->kernel.map, shader->kernel_size); in anv_shader_bin_serialize()
195 blob_write_uint32(blob, shader->prog_data_size); in anv_shader_bin_serialize()
196 blob_write_bytes(blob, shader->prog_data, shader->prog_data_size); in anv_shader_bin_serialize()
197 blob_write_bytes(blob, shader->prog_data->relocs, in anv_shader_bin_serialize()
201 blob_write_uint32(blob, shader->num_stats); in anv_shader_bin_serialize()
[all …]
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_disk_cache.c89 struct blob blob; in v3d_disk_cache_compute_key() local
90 blob_init(&blob); in v3d_disk_cache_compute_key()
97 blob_write_bytes(&blob, ckey, ckey_size); in v3d_disk_cache_compute_key()
99 nir_serialize(&blob, nir, true); in v3d_disk_cache_compute_key()
101 disk_cache_compute_key(cache, blob.data, blob.size, cache_key); in v3d_disk_cache_compute_key()
103 blob_finish(&blob); in v3d_disk_cache_compute_key()
139 struct blob_reader blob; in v3d_disk_cache_retrieve() local
140 blob_reader_init(&blob, buffer, buffer_size); in v3d_disk_cache_retrieve()
143 const void *prog_data = blob_read_bytes(&blob, prog_data_size); in v3d_disk_cache_retrieve()
144 if (blob.overrun) in v3d_disk_cache_retrieve()
[all …]
/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-text.any.js6 const blob = new Blob(["PASS"]); constant
7 const text = await blob.text();
12 const blob = new Blob(); constant
13 const text = await blob.text();
18 const blob = new Blob(["P", "A", "SS"]); constant
19 const text = await blob.text();
26 const blob = new Blob([input_arr]); constant
27 const text = await blob.text();
32 const blob = new Blob(["PASS"], { type: "text/plain;charset=utf-16le" }); constant
33 const text = await blob.text();
[all …]
DBlob-slice-overflow.any.js11 var blob = new Blob([text]);
12 var sliceBlob = blob.slice(-1, blob.size);
17 var blob = new Blob([text]);
18 var sliceBlob = blob.slice(blob.size + 1, blob.size);
23 var blob = new Blob([text]);
24 var sliceBlob = blob.slice(blob.size - 2, -1);
29 var blob = new Blob([text]);
30 var sliceBlob = blob.slice(blob.size - 2, blob.size + 999);
/third_party/typescript/tests/baselines/reference/
Dmaximum10SpellingSuggestions.errors.txt1 …er/maximum10SpellingSuggestions.ts(4,1): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
2 …er/maximum10SpellingSuggestions.ts(4,6): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
3 …r/maximum10SpellingSuggestions.ts(4,11): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
4 …r/maximum10SpellingSuggestions.ts(4,16): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
5 …r/maximum10SpellingSuggestions.ts(4,21): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
6 …r/maximum10SpellingSuggestions.ts(4,26): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
7 …r/maximum10SpellingSuggestions.ts(4,31): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
8 …r/maximum10SpellingSuggestions.ts(4,36): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
9 …r/maximum10SpellingSuggestions.ts(4,41): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
10 …r/maximum10SpellingSuggestions.ts(4,46): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_disk_cache.c53 struct blob blob; in lima_vs_disk_cache_store() local
54 blob_init(&blob); in lima_vs_disk_cache_store()
56 blob_write_bytes(&blob, &shader->state, sizeof(shader->state)); in lima_vs_disk_cache_store()
57 blob_write_bytes(&blob, shader->shader, shader->state.shader_size); in lima_vs_disk_cache_store()
58 blob_write_bytes(&blob, shader->constant, shader->state.constant_size); in lima_vs_disk_cache_store()
60 disk_cache_put(cache, cache_key, blob.data, blob.size, NULL); in lima_vs_disk_cache_store()
61 blob_finish(&blob); in lima_vs_disk_cache_store()
81 struct blob blob; in lima_fs_disk_cache_store() local
82 blob_init(&blob); in lima_fs_disk_cache_store()
84 blob_write_bytes(&blob, &shader->state, sizeof(shader->state)); in lima_fs_disk_cache_store()
[all …]
/third_party/mesa3d/src/mesa/main/
Dprogram_binary.c173 write_program_payload(struct gl_context *ctx, struct blob *blob, in write_program_payload() argument
183 blob_write_uint32(blob, sh_prog->SeparateShader); in write_program_payload()
185 serialize_glsl_program(blob, ctx, sh_prog); in write_program_payload()
199 read_program_payload(struct gl_context *ctx, struct blob_reader *blob, in read_program_payload() argument
202 sh_prog->SeparateShader = blob_read_uint32(blob); in read_program_payload()
204 if (!deserialize_glsl_program(blob, ctx, sh_prog)) in read_program_payload()
225 struct blob blob; in _mesa_get_program_binary_length() local
226 blob_init_fixed(&blob, NULL, SIZE_MAX); in _mesa_get_program_binary_length()
227 write_program_payload(ctx, &blob, sh_prog); in _mesa_get_program_binary_length()
228 *length = get_program_binary_header_size() + blob.size; in _mesa_get_program_binary_length()
[all …]
/third_party/flutter/skia/src/gpu/text/
DGrTextBlobCache.h61 void remove(GrTextBlob* blob) { in remove() argument
62 auto id = GrTextBlob::GetKey(*blob).fUniqueID; in remove()
66 fCurrentSize -= blob->size(); in remove()
67 fBlobList.remove(blob); in remove()
68 idEntry->removeBlob(blob); in remove()
74 void makeMRU(GrTextBlob* blob) { in makeMRU() argument
75 if (fBlobList.head() == blob) { in makeMRU()
79 fBlobList.remove(blob); in makeMRU()
80 fBlobList.addToHead(blob); in makeMRU()
86 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { in BlobGlyphCount() argument
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_shader_cache.c43 write_stream_out_to_cache(struct blob *blob, in write_stream_out_to_cache() argument
46 blob_write_uint32(blob, state->stream_output.num_outputs); in write_stream_out_to_cache()
48 blob_write_bytes(blob, &state->stream_output.stride, in write_stream_out_to_cache()
50 blob_write_bytes(blob, &state->stream_output.output, in write_stream_out_to_cache()
56 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) in copy_blob_to_driver_cache_blob() argument
58 prog->driver_cache_blob = ralloc_size(NULL, blob->size); in copy_blob_to_driver_cache_blob()
59 memcpy(prog->driver_cache_blob, blob->data, blob->size); in copy_blob_to_driver_cache_blob()
60 prog->driver_cache_blob_size = blob->size; in copy_blob_to_driver_cache_blob()
64 write_nir_to_cache(struct blob *blob, struct gl_program *prog) in write_nir_to_cache() argument
68 blob_write_intptr(blob, prog->serialized_nir_size); in write_nir_to_cache()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_serialize.c42 struct blob *blob; member
72 struct blob_reader *blob; member
125 return read_lookup_object(ctx, blob_read_uint32(ctx->blob)); in read_object()
179 blob_write_bytes(ctx->blob, c->values, sizeof(c->values)); in write_constant()
180 blob_write_uint32(ctx->blob, c->num_elements); in write_constant()
190 blob_copy_bytes(ctx->blob, (uint8_t *)c->values, sizeof(c->values)); in read_constant()
191 c->num_elements = blob_read_uint32(ctx->blob); in read_constant()
290 blob_write_uint32(ctx->blob, flags.u32); in write_variable()
293 encode_type_to_blob(ctx->blob, var->type); in write_variable()
298 encode_type_to_blob(ctx->blob, var->interface_type); in write_variable()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_disk_cache.c100 struct blob blob; in iris_disk_cache_store() local
101 blob_init(&blob); in iris_disk_cache_store()
114 blob_write_bytes(&blob, shader->prog_data, brw_prog_data_size(stage)); in iris_disk_cache_store()
115 blob_write_bytes(&blob, shader->map, shader->prog_data->program_size); in iris_disk_cache_store()
116 blob_write_uint32(&blob, shader->num_system_values); in iris_disk_cache_store()
117 blob_write_bytes(&blob, shader->system_values, in iris_disk_cache_store()
119 blob_write_uint32(&blob, shader->kernel_input_size); in iris_disk_cache_store()
120 blob_write_bytes(&blob, prog_data->relocs, in iris_disk_cache_store()
122 blob_write_bytes(&blob, prog_data->param, in iris_disk_cache_store()
124 blob_write_bytes(&blob, &shader->bt, sizeof(shader->bt)); in iris_disk_cache_store()
[all …]

12345678910>>...53