Home
last modified time | relevance | path

Searched refs:binary (Results 76 - 100 of 896) sorted by relevance

12345678910>>...36

/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_assemble.c95 struct util_dynarray binary; in panfrost_shader_compile() local
97 util_dynarray_init(&binary, NULL); in panfrost_shader_compile()
98 screen->vtbl.compile_shader(s, &inputs, &binary, &state->info); in panfrost_shader_compile()
100 if (binary.size) { in panfrost_shader_compile()
103 binary.data, binary.size, 128)); in panfrost_shader_compile()
116 util_dynarray_fini(&binary); in panfrost_shader_compile()
/third_party/spirv-tools/include/spirv-tools/
H A Dlibspirv.hpp319 // Assembles the given assembly |text| and writes the result to |binary|.
320 // Returns true on successful assembling. |binary| will be kept untouched if
322 // The SPIR-V binary version is set to the highest version of SPIR-V supported
324 bool Assemble(const std::string& text, std::vector<uint32_t>* binary,
328 // The SPIR-V binary version is set to the highest version of SPIR-V supported
331 std::vector<uint32_t>* binary,
334 // Disassembles the given SPIR-V |binary| with the given |options| and writes
337 bool Disassemble(const std::vector<uint32_t>& binary, std::string* text,
339 // |binary_size| specifies the number of words in |binary|.
340 bool Disassemble(const uint32_t* binary, size_
[all...]
/third_party/spirv-tools/test/link/
H A Dglobal_values_amount_test.cpp62 spvtest::Binary& binary = binaries.back(); variable
63 binary.reserve(common_binary.size() + global_variable_count_per_binary * 4);
64 binary.insert(binary.end(), common_binary.cbegin(), common_binary.cend());
67 binary.push_back(static_cast<uint32_t>(spv::Op::OpVariable) |
69 binary.push_back(2u); // NOTE: Type ID
70 binary.push_back(3u + i); // NOTE: Result ID
71 binary.push_back(static_cast<uint32_t>(spv::StorageClass::Input));
/third_party/json/docs/examples/
H A Dswap__binary_t.cpp8 // create a binary value in main()
9 json value = json::binary({1, 2, 3}); in main()
12 json::binary_t binary = {{4, 5, 6}}; in main() local
15 value.swap(binary); in main()
19 std::cout << "binary = " << json(binary) << '\n'; in main()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Dmodule_utils.h24 std::vector<uint32_t> binary; in GetIdBound() local
25 m.ToBinary(&binary, false); in GetIdBound()
27 EXPECT_LE(5u, binary.size()); in GetIdBound()
29 return binary[3]; in GetIdBound()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A Dmodule_utils.h24 std::vector<uint32_t> binary; in GetIdBound() local
25 m.ToBinary(&binary, false); in GetIdBound()
27 EXPECT_LE(5u, binary.size()); in GetIdBound()
29 return binary[3]; in GetIdBound()
/third_party/spirv-tools/test/opt/
H A Dmodule_utils.h25 std::vector<uint32_t> binary; in GetIdBound() local
26 m.ToBinary(&binary, false); in GetIdBound()
28 EXPECT_LE(5u, binary.size()); in GetIdBound()
30 return binary[3]; in GetIdBound()
/third_party/mesa3d/src/amd/common/
H A Dac_rtld.h93 * the opened binary.
113 bool ac_rtld_open(struct ac_rtld_binary *binary, struct ac_rtld_open_info i);
115 void ac_rtld_close(struct ac_rtld_binary *binary);
117 bool ac_rtld_get_section_by_name(struct ac_rtld_binary *binary, const char *name, const char **data,
120 bool ac_rtld_read_config(const struct radeon_info *info, struct ac_rtld_binary *binary,
124 struct ac_rtld_binary *binary; member
133 * defined in any of the binary's parts. */
/third_party/skia/third_party/externals/spirv-tools/test/
H A Dbinary_to_text_test.cpp38 : context(spvContextCreate(SPV_ENV_UNIVERSAL_1_0)), binary(nullptr) {} in BinaryToText()
40 spvBinaryDestroy(binary); variable
69 spvTextToBinary(context, text.str, text.length, &binary, &diagnostic);
76 spvBinaryDestroy(binary); variable
77 binary = nullptr;
80 // Compiles the given assembly text, and saves it into 'binary'.
82 spvBinaryDestroy(binary); in CompileSuccessfully()
83 binary = nullptr; in CompileSuccessfully()
86 &binary, &diagnostic)); in CompileSuccessfully()
90 spv_binary binary; member in spvtools::__anon21943::BinaryToText
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
H A Dbinary_to_text_test.cpp38 : context(spvContextCreate(SPV_ENV_UNIVERSAL_1_0)), binary(nullptr) {} in BinaryToText()
40 spvBinaryDestroy(binary); variable
69 spvTextToBinary(context, text.str, text.length, &binary, &diagnostic);
76 spvBinaryDestroy(binary); variable
77 binary = nullptr;
80 // Compiles the given assembly text, and saves it into 'binary'.
82 spvBinaryDestroy(binary); in CompileSuccessfully()
83 binary = nullptr; in CompileSuccessfully()
86 &binary, &diagnostic)); in CompileSuccessfully()
90 spv_binary binary; member in spvtools::__anon23200::BinaryToText
[all...]
/third_party/json/tests/src/
H A Dunit-serialization.cpp185 TEST_CASE("dump with binary values")
187 auto binary = json::binary({1, 2, 3, 4}); variable
188 auto binary_empty = json::binary({});
189 auto binary_with_subtype = json::binary({1, 2, 3, 4}, 128);
190 auto binary_empty_with_subtype = json::binary({}, 128);
192 json object = {{"key", binary}};
197 json array = {"value", 1, binary};
204 CHECK(binary.dump() == "{\"bytes\":[1,2,3,4],\"subtype\":null}");
222 CHECK(binary
[all...]
/third_party/mesa3d/src/imagination/rogue/tools/
H A Doffline_compiler.c94 printf("\t-c, --dump-c-array Print the shader binary as a C byte array.\n"); in usage()
257 ctx->binary[opts.stage] = rogue_to_binary(ctx, ctx->rogue[opts.stage]); in main()
258 if (!ctx->binary[opts.stage]) { in main()
259 fprintf(stderr, "Failed to translate Rogue to binary.\n"); in main()
263 /* Dump binary as a C array. */ in main()
265 printf("uint8_t shader_bytes[%zu] = {", ctx->binary[opts.stage]->size); in main()
266 for (size_t u = 0U; u < ctx->binary[opts.stage]->size; ++u) { in main()
270 printf("0x%02x, ", ctx->binary[opts.stage]->data[u]); in main()
275 /* Write shader binary to disk. */ in main()
282 bytes_written = fwrite(ctx->binary[opt in main()
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dprogram_binary.c28 * Helper functions for serializing a binary program.
45 * Mesa supports one binary format, but it must differentiate between formats
61 * the binary only works with the same Mesa version.
68 * Returns the header size needed for a binary
78 const void *sha1, void *binary, unsigned binary_size, in write_program_binary()
81 struct program_binary_header *hdr = binary; in write_program_binary()
153 * Returns the payload within the binary.
155 * If NULL is returned, then the binary not supported. If non-NULL is
156 * returned, it will be a pointer contained within the specified `binary`
159 * This can be used to access the payload of `binary` durin
77 write_program_binary(const void *payload, unsigned payload_size, const void *sha1, void *binary, unsigned binary_size, GLenum *binary_format) write_program_binary() argument
163 get_program_binary_payload(GLenum binary_format, const void *sha1, const void *binary, unsigned length) get_program_binary_payload() argument
233 _mesa_get_program_binary(struct gl_context *ctx, struct gl_shader_program *sh_prog, GLsizei buf_size, GLsizei *length, GLenum *binary_format, GLvoid *binary) _mesa_get_program_binary() argument
272 _mesa_program_binary(struct gl_context *ctx, struct gl_shader_program *sh_prog, GLenum binary_format, const GLvoid *binary, GLsizei length) _mesa_program_binary() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DProgramBinaryTest.cpp76 std::cout << "Test skipped because no program binary formats are available." in supported()
93 std::vector<uint8_t> binary(programLength); in saveAndLoadProgram()
95 binary.data()); in saveAndLoadProgram()
103 glProgramBinaryOES(loadedProgram, binaryFormat, binary.data(), writtenLength); in saveAndLoadProgram()
196 // This tests the ability to successfully save and load a program binary.
212 // This tests the ability to successfully save and load a program binary and then
264 // Test that unlinked programs have a binary size of 0
293 // We can't run the test if no program binary formats are supported. in testBinaryAndUBOBlockIndexes()
346 // Read back the binary. in testBinaryAndUBOBlockIndexes()
353 std::vector<uint8_t> binary(programLengt in testBinaryAndUBOBlockIndexes()
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/reduce/
H A Dreducer_test.cpp32 // binary is interesting, until some limit is reached after which the binary is
36 // reduced binary for tests.
224 bool InterestingWhileOpcodeExists(const std::vector<uint32_t>& binary, in InterestingWhileOpcodeExists() argument
229 DumpShader(binary, ss.str().c_str()); in InterestingWhileOpcodeExists()
233 BuildModule(kEnv, kMessageConsumer, binary.data(), binary.size()); in InterestingWhileOpcodeExists()
254 bool InterestingWhileIMulReachable(const std::vector<uint32_t>& binary, in InterestingWhileIMulReachable() argument
256 return InterestingWhileOpcodeExists(binary, SpvOpIMul, count, false); in InterestingWhileIMulReachable()
259 bool InterestingWhileSDivReachable(const std::vector<uint32_t>& binary, in InterestingWhileSDivReachable() argument
563 GetFunctionInstructionCount( const std::vector<uint32_t>& binary) GetFunctionInstructionCount() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/reduce/
H A Dreducer_test.cpp32 // binary is interesting, until some limit is reached after which the binary is
36 // reduced binary for tests.
224 bool InterestingWhileOpcodeExists(const std::vector<uint32_t>& binary, in InterestingWhileOpcodeExists() argument
229 DumpShader(binary, ss.str().c_str()); in InterestingWhileOpcodeExists()
233 BuildModule(kEnv, kMessageConsumer, binary.data(), binary.size()); in InterestingWhileOpcodeExists()
254 bool InterestingWhileIMulReachable(const std::vector<uint32_t>& binary, in InterestingWhileIMulReachable() argument
256 return InterestingWhileOpcodeExists(binary, SpvOpIMul, count, false); in InterestingWhileIMulReachable()
259 bool InterestingWhileSDivReachable(const std::vector<uint32_t>& binary, in InterestingWhileSDivReachable() argument
563 GetFunctionInstructionCount( const std::vector<uint32_t>& binary) GetFunctionInstructionCount() argument
[all...]
/third_party/spirv-tools/test/reduce/
H A Dreducer_test.cpp32 // binary is interesting, until some limit is reached after which the binary is
36 // reduced binary for tests.
224 bool InterestingWhileOpcodeExists(const std::vector<uint32_t>& binary, in InterestingWhileOpcodeExists() argument
229 DumpShader(binary, ss.str().c_str()); in InterestingWhileOpcodeExists()
233 BuildModule(kEnv, kMessageConsumer, binary.data(), binary.size()); in InterestingWhileOpcodeExists()
254 bool InterestingWhileIMulReachable(const std::vector<uint32_t>& binary, in InterestingWhileIMulReachable() argument
256 return InterestingWhileOpcodeExists(binary, spv::Op::OpIMul, count, false); in InterestingWhileIMulReachable()
259 bool InterestingWhileSDivReachable(const std::vector<uint32_t>& binary, in InterestingWhileSDivReachable() argument
563 GetFunctionInstructionCount( const std::vector<uint32_t>& binary) GetFunctionInstructionCount() argument
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/llvm/
H A Dinvocation.hpp27 #include "core/binary.hpp"
33 binary compile_program(const std::string &source,
39 binary link_program(const std::vector<binary> &binaries,
45 binary compile_to_spirv(const std::string &source,
/third_party/libexif/test/
H A Dcheck-failmalloc.sh3 # The test runs a binary multiple times while configuring Failmalloc to fail a
7 # Ideally, it would ensure that the test binary returns an error code on each
26 # If libtool is in use, the normal "binary" is actually a shell script which
28 # binary which should work properly.
32 # Usage: failmalloc_binary_test #iterations binary <optional arguments>
36 binary="$BINARY_PREFIX$2"
40 echo Checking "$binary" for "$iterations" iterations
43 FAILMALLOC_INTERVAL="$n" LD_PRELOAD="$FAILMALLOC_PATH" "$binary" "$@" >/dev/null
49 echo "Abnormal binary exit status $s at malloc #$n on $binary"
[all...]
/third_party/skia/third_party/externals/spirv-tools/include/spirv-tools/
H A Dlibspirv.hpp309 // Assembles the given assembly |text| and writes the result to |binary|.
310 // Returns true on successful assembling. |binary| will be kept untouched if
312 // The SPIR-V binary version is set to the highest version of SPIR-V supported
314 bool Assemble(const std::string& text, std::vector<uint32_t>* binary,
318 // The SPIR-V binary version is set to the highest version of SPIR-V supported
321 std::vector<uint32_t>* binary,
324 // Disassembles the given SPIR-V |binary| with the given |options| and writes
327 bool Disassemble(const std::vector<uint32_t>& binary, std::string* text,
329 // |binary_size| specifies the number of words in |binary|.
330 bool Disassemble(const uint32_t* binary, size_
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/include/spirv-tools/
H A Dlibspirv.hpp309 // Assembles the given assembly |text| and writes the result to |binary|.
310 // Returns true on successful assembling. |binary| will be kept untouched if
312 // The SPIR-V binary version is set to the highest version of SPIR-V supported
314 bool Assemble(const std::string& text, std::vector<uint32_t>* binary,
318 // The SPIR-V binary version is set to the highest version of SPIR-V supported
321 std::vector<uint32_t>* binary,
324 // Disassembles the given SPIR-V |binary| with the given |options| and writes
327 bool Disassemble(const std::vector<uint32_t>& binary, std::string* text,
329 // |binary_size| specifies the number of words in |binary|.
330 bool Disassemble(const uint32_t* binary, size_
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/llvm/codegen/
H A Dbitcode.cpp52 using clover::binary;
73 binary
75 enum binary::section::type section_type) { in build_module_library()
76 binary b; in build_module_library()
83 clover::llvm::parse_module_library(const binary &b, ::llvm::LLVMContext &ctx, in parse_module_library()
/third_party/node/deps/v8/third_party/wasm-api/example/
H A Dhello.c26 // Load binary. in main()
27 printf("Loading binary...\n"); in main()
36 wasm_byte_vec_t binary; in main() local
37 wasm_byte_vec_new_uninitialized(&binary, file_size); in main()
38 if (fread(binary.data, file_size, 1, file) != 1) { in main()
46 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
52 wasm_byte_vec_delete(&binary); in main()
H A Dfinalize.c21 // Load binary. in run_in_store()
22 printf("Loading binary...\n"); in run_in_store()
31 wasm_byte_vec_t binary; in run_in_store() local
32 wasm_byte_vec_new_uninitialized(&binary, file_size); in run_in_store()
33 if (fread(binary.data, file_size, 1, file) != 1) { in run_in_store()
41 own wasm_module_t* module = wasm_module_new(store, &binary); in run_in_store()
47 wasm_byte_vec_delete(&binary); in run_in_store()
H A Dserialize.c24 // Load binary. in main()
25 printf("Loading binary...\n"); in main()
34 wasm_byte_vec_t binary; in main() local
35 wasm_byte_vec_new_uninitialized(&binary, file_size); in main()
36 if (fread(binary.data, file_size, 1, file) != 1) { in main()
44 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
50 wasm_byte_vec_delete(&binary); in main()

Completed in 14 milliseconds

12345678910>>...36