| /third_party/skia/third_party/externals/spirv-tools/tools/as/ |
| H A D | as.cpp | 26 R"(%s - Create a SPIR-V binary module from SPIR-V assembly text in print_usage() 32 The SPIR-V binary module is written to file "out.spv", unless the -o option in print_usage() 42 Numeric IDs in the binary will have the same values as in the in print_usage() 134 spv_binary binary; in main() 138 context, contents.data(), contents.size(), options, &binary, &diagnostic); in main() 146 if (!WriteFile<uint32_t>(outFile, "wb", binary->code, binary->wordCount)) { in main() 147 spvBinaryDestroy(binary); in main() 151 spvBinaryDestroy(binary); in main()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/as/ |
| H A D | as.cpp | 26 R"(%s - Create a SPIR-V binary module from SPIR-V assembly text in print_usage() 32 The SPIR-V binary module is written to file "out.spv", unless the -o option in print_usage() 42 Numeric IDs in the binary will have the same values as in the in print_usage() 134 spv_binary binary; in main() 138 context, contents.data(), contents.size(), options, &binary, &diagnostic); in main() 146 if (!WriteFile<uint32_t>(outFile, "wb", binary->code, binary->wordCount)) { in main() 147 spvBinaryDestroy(binary); in main() 151 spvBinaryDestroy(binary); in main()
|
| /third_party/spirv-tools/tools/as/ |
| H A D | as.cpp | 27 R"(%s - Create a SPIR-V binary module from SPIR-V assembly text 33 The SPIR-V binary module is written to file "out.spv", unless the -o option 43 Numeric IDs in the binary will have the same values as in the 111 spv_binary binary; in main() 115 context, contents.data(), contents.size(), options, &binary, &diagnostic); in main() 123 if (!WriteFile<uint32_t>(outFile.c_str(), "wb", binary->code, in main() 124 binary->wordCount)) { in main() 125 spvBinaryDestroy(binary); in main() 129 spvBinaryDestroy(binary); in main()
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/ifmtr/src/ |
| H A D | ifmtr.c | 76 struct ia_css_binary *binary) in ia_css_ifmtr_configure() 108 if (binary) { in ia_css_ifmtr_configure() 109 cropped_height = binary->in_frame_info.res.height; in ia_css_ifmtr_configure() 110 cropped_width = binary->in_frame_info.res.width; in ia_css_ifmtr_configure() 113 if (binary->info->sp.enable.continuous && in ia_css_ifmtr_configure() 114 binary->info->sp.pipeline.mode != IA_CSS_BINARY_MODE_COPY) in ia_css_ifmtr_configure() 117 buffer_width = binary->info->sp.input.max_width; in ia_css_ifmtr_configure() 118 input_format = binary->input_format; in ia_css_ifmtr_configure() 120 /* sp raw copy pipe (IA_CSS_PIPE_MODE_COPY): binary is NULL */ in ia_css_ifmtr_configure() 141 * RAW data in any particular bayer order. copy binary wit in ia_css_ifmtr_configure() 75 ia_css_ifmtr_configure(struct ia_css_stream_config *config, struct ia_css_binary *binary) ia_css_ifmtr_configure() argument [all...] |
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/ifmtr/src/ |
| H A D | ifmtr.c | 76 struct ia_css_binary *binary) in ia_css_ifmtr_configure() 108 if (binary) { in ia_css_ifmtr_configure() 109 cropped_height = binary->in_frame_info.res.height; in ia_css_ifmtr_configure() 110 cropped_width = binary->in_frame_info.res.width; in ia_css_ifmtr_configure() 113 if (binary->info->sp.enable.continuous && in ia_css_ifmtr_configure() 114 binary->info->sp.pipeline.mode != IA_CSS_BINARY_MODE_COPY) in ia_css_ifmtr_configure() 117 buffer_width = binary->info->sp.input.max_width; in ia_css_ifmtr_configure() 118 input_format = binary->input_format; in ia_css_ifmtr_configure() 120 /* sp raw copy pipe (IA_CSS_PIPE_MODE_COPY): binary is NULL */ in ia_css_ifmtr_configure() 141 * RAW data in any particular bayer order. copy binary wit in ia_css_ifmtr_configure() 75 ia_css_ifmtr_configure(struct ia_css_stream_config *config, struct ia_css_binary *binary) ia_css_ifmtr_configure() argument [all...] |
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/binary/interface/ |
| H A D | ia_css_binary.h | 28 /* The binary mode is used in pre-processor expressions so we cannot 170 struct ia_css_binary *binary, 177 struct ia_css_binary *binary); 181 * @param[in] binary: The isp binary which has the shading correction. 195 ia_css_binary_get_shading_info(const struct ia_css_binary *binary, 203 ia_css_binary_3a_grid_info(const struct ia_css_binary *binary, 208 ia_css_binary_dvs_grid_info(const struct ia_css_binary *binary, 214 const struct ia_css_binary *binary, 222 ia_css_binary_destroy_isp_parameters(struct ia_css_binary *binary); [all...] |
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/binary/interface/ |
| H A D | ia_css_binary.h | 28 /* The binary mode is used in pre-processor expressions so we cannot 167 struct ia_css_binary *binary, 174 struct ia_css_binary *binary); 178 * @param[in] binary: The isp binary which has the shading correction. 192 ia_css_binary_get_shading_info(const struct ia_css_binary *binary, 200 ia_css_binary_3a_grid_info(const struct ia_css_binary *binary, 205 ia_css_binary_dvs_grid_info(const struct ia_css_binary *binary, 211 const struct ia_css_binary *binary, 219 ia_css_binary_destroy_isp_parameters(struct ia_css_binary *binary); [all...] |
| /third_party/mesa3d/src/gallium/drivers/panfrost/ |
| H A D | pan_assemble.c | 95 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 D | libspirv.hpp | 319 // 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 D | global_values_amount_test.cpp | 62 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 D | swap__binary_t.cpp | 8 // 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 D | module_utils.h | 24 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 D | module_utils.h | 24 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 D | module_utils.h | 25 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 D | ac_rtld.h | 93 * 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. */
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/pipeline/src/ |
| H A D | pipeline.c | 269 * The stage consists of an ISP binary or firmware and input and 287 if (!stage_desc->binary && !stage_desc->firmware in ia_css_pipeline_create_and_add_stage() 305 && (!stage_desc->binary->online)) { in ia_css_pipeline_create_and_add_stage() 432 /* If no firmware, find binary in pipe */ in ia_css_pipeline_get_output_stage() 491 * their own binary and frame pointers. 575 struct ia_css_binary *binary; in pipeline_stage_create() local 583 && (stage_desc->binary) && !(stage_desc->binary->online)) { in pipeline_stage_create() 588 binary = stage_desc->binary; in pipeline_stage_create() [all...] |
| /third_party/skia/third_party/externals/spirv-tools/test/ |
| H A D | binary_to_text_test.cpp | 38 : 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 D | binary_to_text_test.cpp | 38 : 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...] |
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ |
| H A D | ia_css_dvs.host.h | 40 const struct ia_css_binary *binary, 46 const struct ia_css_binary *binary); 51 const struct ia_css_binary *binary, 57 const struct ia_css_binary *binary,
|
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ |
| H A D | ia_css_dvs.host.h | 38 int ia_css_dvs_configure(const struct ia_css_binary *binary, 44 const struct ia_css_binary *binary); 49 const struct ia_css_binary *binary, 55 const struct ia_css_binary *binary,
|
| /third_party/json/tests/src/ |
| H A D | unit-serialization.cpp | 185 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 D | offline_compiler.c | 94 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 D | program_binary.c | 28 * 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 D | ProgramBinaryTest.cpp | 76 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 D | reducer_test.cpp | 32 // 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...] |