| /third_party/spirv-tools/source/opt/ |
| D | feature_manager.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 31 for (auto ext : module->extensions()) { in AddExtensions() local 32 AddExtension(&ext); in AddExtensions() 36 void FeatureManager::AddExtension(Instruction* ext) { in AddExtension() argument 37 assert(ext->opcode() == spv::Op::OpExtension && in AddExtension() 40 const std::string name = ext->GetInOperand(0u).AsString(); in AddExtension() 47 void FeatureManager::RemoveExtension(Extension ext) { in RemoveExtension() argument 48 if (!extensions_.contains(ext)) return; in RemoveExtension() 49 extensions_.erase(ext); in RemoveExtension() 52 void FeatureManager::AddCapability(spv::Capability cap) { in AddCapability() argument [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/source/opt/ |
| D | feature_manager.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 33 for (auto ext : module->extensions()) { in AddExtensions() local 34 AddExtension(&ext); in AddExtensions() 38 void FeatureManager::AddExtension(Instruction* ext) { in AddExtension() argument 39 assert(ext->opcode() == SpvOpExtension && in AddExtension() 42 const std::string name = in AddExtension() 43 reinterpret_cast<const char*>(ext->GetInOperand(0u).words.data()); in AddExtension() 50 void FeatureManager::RemoveExtension(Extension ext) { in RemoveExtension() argument 51 if (!extensions_.Contains(ext)) return; in RemoveExtension() 52 extensions_.Remove(ext); in RemoveExtension() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
| D | feature_manager.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 33 for (auto ext : module->extensions()) { in AddExtensions() local 34 AddExtension(&ext); in AddExtensions() 38 void FeatureManager::AddExtension(Instruction* ext) { in AddExtension() argument 39 assert(ext->opcode() == SpvOpExtension && in AddExtension() 42 const std::string name = in AddExtension() 43 reinterpret_cast<const char*>(ext->GetInOperand(0u).words.data()); in AddExtension() 50 void FeatureManager::RemoveExtension(Extension ext) { in RemoveExtension() argument 51 if (!extensions_.Contains(ext)) return; in RemoveExtension() 52 extensions_.Remove(ext); in RemoveExtension() [all …]
|
| /third_party/glslang/SPIRV/ |
| D | SpvPostProcess.cpp | 36 // Post-processing for SPIR-V IR, in internal form, not standard binary form. 50 #include "GLSL.std.450.h" 51 #include "GLSL.ext.KHR.h" 52 #include "GLSL.ext.EXT.h" 53 #include "GLSL.ext.AMD.h" 54 #include "GLSL.ext.NV.h" 55 #include "GLSL.ext.ARM.h" 56 #include "GLSL.ext.QCOM.h" 72 // Do opcode-specific checks in postProcessType() 120 // Look for any 8/16-bit storage capabilities. If there are none, assume that in postProcessType() [all …]
|
| D | SpvBuilder.h | 2 // Copyright (C) 2014-2015 LunarG, Inc. 3 // Copyright (C) 2015-2020 Google, Inc. 39 // "Builder" is an interface to fully build SPIR-V IR. Allocate one of 40 // these to build (a thread safe) internal SPIR-V representation (IR), 41 // and then dump it as a binary stream according to the SPIR-V specification. 43 // A Builder has a 1:1 relationship with a SPIR-V module. 54 #include "GLSL.ext.KHR.h" 92 spv::Id getStringId(const std::string& str) in getStringId() 96 return sItr->second; in getStringId() 100 fileString->addStringOperand(file_c_str); in getStringId() [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/tools/sva/tools/ |
| D | process_grammar.rb | 9 # http://www.apache.org/licenses/LICENSE-2.0 19 GRAMMAR = "../../external/spirv-headers/include/spirv/unified1/spirv.core.grammar.json" 20 GLSL = "../../external/spirv-headers/include/spirv/unified1/extinst.glsl.std.450.grammar.json" 40 inst['capabilities'].each do |cap| 41 if CAPABILITIES.include?(cap) 76 enum['capabilities'].each do |cap| 77 if CAPABILITIES.include?(cap) 105 ext = {} 108 ext[inst['opname']] = inst['opcode'] 118 ext: ext
|
| /third_party/spirv-tools/tools/sva/tools/ |
| D | process_grammar.rb | 9 # http://www.apache.org/licenses/LICENSE-2.0 19 GRAMMAR = "../../external/spirv-headers/include/spirv/unified1/spirv.core.grammar.json" 20 GLSL = "../../external/spirv-headers/include/spirv/unified1/extinst.glsl.std.450.grammar.json" 40 inst['capabilities'].each do |cap| 41 if CAPABILITIES.include?(cap) 76 enum['capabilities'].each do |cap| 77 if CAPABILITIES.include?(cap) 105 ext = {} 108 ext[inst['opname']] = inst['opcode'] 118 ext: ext
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/sva/tools/ |
| D | process_grammar.rb | 9 # http://www.apache.org/licenses/LICENSE-2.0 19 GRAMMAR = "../../external/spirv-headers/include/spirv/unified1/spirv.core.grammar.json" 20 GLSL = "../../external/spirv-headers/include/spirv/unified1/extinst.glsl.std.450.grammar.json" 40 inst['capabilities'].each do |cap| 41 if CAPABILITIES.include?(cap) 76 enum['capabilities'].each do |cap| 77 if CAPABILITIES.include?(cap) 105 ext = {} 108 ext[inst['opname']] = inst['opcode'] 118 ext: ext
|
| /third_party/rust/crates/rustix/.github/workflows/ |
| D | test-users.yml | 10 runs-on: ${{ matrix.os }} 15 …build: [ubuntu, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, mipsel-linux, mips64e… 17 - build: ubuntu 18 os: ubuntu-latest 20 - build: i686-linux 21 os: ubuntu-latest 23 target: i686-unknown-linux-gnu 24 gcc_package: gcc-i686-linux-gnu 25 gcc: i686-linux-gnu-gcc 26 libc_package: libc-dev-i386-cross [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-assists/src/handlers/ |
| D | generate_delegate_methods.rs | 1 use std::collections::HashSet; 19 // fn age(&self) -> u8 { 28 // -> 32 // fn age(&self) -> u8 { 42 // $0fn age(&self) -> u8 { 47 pub(crate) fn generate_delegate_methods(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> { in generate_delegate_methods() 91 … let Some(impl_def) = find_struct_impl(ctx, &adt, std::slice::from_ref(&name)) else { continue; }; in generate_delegate_methods() 113 …make::ext::field_from_idents(["self", &field_name]).unwrap(), // This unwrap is ok because we have… in generate_delegate_methods() 155 Some(cap) => { in generate_delegate_methods() 156 let snippet = render_snippet(cap, impl_def.syntax(), cursor); in generate_delegate_methods() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/ |
| D | val_extensions_test.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 37 using ValidateKnownExtensions = spvtest::ValidateBase<std::string>; 38 using ValidateUnknownExtensions = spvtest::ValidateBase<std::string>; 42 std::string GetErrorString(const std::string& extension) { in GetErrorString() 49 // Match the order as published on the SPIR-V Registry. 73 const std::string extension = GetParam(); in TEST_P() 74 const std::string str = in TEST_P() 83 const std::string extension = GetParam(); in TEST_P() 84 const std::string str = in TEST_P() 93 const std::string str = in TEST_F() [all …]
|
| /third_party/spirv-tools/test/val/ |
| D | val_extensions_test.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 35 using ValidateKnownExtensions = spvtest::ValidateBase<std::string>; 36 using ValidateUnknownExtensions = spvtest::ValidateBase<std::string>; 40 std::string GetErrorString(const std::string& extension) { in GetErrorString() 47 // Match the order as published on the SPIR-V Registry. 71 const std::string extension = GetParam(); in TEST_P() 72 const std::string str = in TEST_P() 81 const std::string extension = GetParam(); in TEST_P() 82 const std::string str = in TEST_P() 91 const std::string str = in TEST_F() [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/test/val/ |
| D | val_extensions_test.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 37 using ValidateKnownExtensions = spvtest::ValidateBase<std::string>; 38 using ValidateUnknownExtensions = spvtest::ValidateBase<std::string>; 42 std::string GetErrorString(const std::string& extension) { in GetErrorString() 49 // Match the order as published on the SPIR-V Registry. 73 const std::string extension = GetParam(); in TEST_P() 74 const std::string str = in TEST_P() 83 const std::string extension = GetParam(); in TEST_P() 84 const std::string str = in TEST_P() 93 const std::string str = in TEST_F() [all …]
|
| /third_party/mesa3d/src/gallium/frontends/rusticl/core/ |
| D | device.rs | 22 use std::cmp::max; 23 use std::cmp::min; 24 use std::collections::HashMap; 25 use std::convert::TryInto; 26 use std::env; 27 use std::ffi::CStr; 28 use std::mem::transmute; 29 use std::os::raw::*; 30 use std::sync::Arc; 31 use std::sync::Mutex; [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/source/val/ |
| D | validation_state.h | 1 // Copyright (c) 2015-2016 The Khronos Group Inc. 7 // http://www.apache.org/licenses/LICENSE-2.0 38 #include "spirv-tools/libspirv.h" 62 /// This class manages the state of the SPIR-V validation as it is being parsed. 93 // SPIR-V 1.4 allows us to select between any two composite values 97 // SPIR-V 1.4 allows two memory access operands for OpCopyMemory and 101 // SPIR-V 1.4 allows UConvert as a spec constant op in any environment. 105 // SPIR-V 1.4 allows Function and Private variables to be NonWritable 129 /// Sets the SPIR-V version of this module. 132 /// Gets the SPIR-V version of this module. [all …]
|
| D | validation_state.cpp | 1 // Copyright (c) 2015-2016 The Khronos Group Inc. 7 // http://www.apache.org/licenses/LICENSE-2.0 27 #include "spirv-tools/libspirv.h" 107 if (inst->opcode == SpvOpFunction) _.increment_total_functions(); in CountInstructions() 125 // Add features based on SPIR-V core version number. 130 features->select_between_composites = true; in UpdateFeaturesBasedOnSpirvVersion() 131 features->copy_memory_permits_two_memory_accesses = true; in UpdateFeaturesBasedOnSpirvVersion() 132 features->uconvert_spec_constant_op = true; in UpdateFeaturesBasedOnSpirvVersion() 133 features->nonwritable_var_in_function_or_private = true; in UpdateFeaturesBasedOnSpirvVersion() 169 const auto env = context_->target_env; [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
| D | validation_state.h | 1 // Copyright (c) 2015-2016 The Khronos Group Inc. 7 // http://www.apache.org/licenses/LICENSE-2.0 38 #include "spirv-tools/libspirv.h" 62 /// This class manages the state of the SPIR-V validation as it is being parsed. 93 // SPIR-V 1.4 allows us to select between any two composite values 97 // SPIR-V 1.4 allows two memory access operands for OpCopyMemory and 101 // SPIR-V 1.4 allows UConvert as a spec constant op in any environment. 105 // SPIR-V 1.4 allows Function and Private variables to be NonWritable 129 /// Sets the SPIR-V version of this module. 132 /// Gets the SPIR-V version of this module. [all …]
|
| D | validation_state.cpp | 1 // Copyright (c) 2015-2016 The Khronos Group Inc. 7 // http://www.apache.org/licenses/LICENSE-2.0 27 #include "spirv-tools/libspirv.h" 107 if (inst->opcode == SpvOpFunction) _.increment_total_functions(); in CountInstructions() 125 // Add features based on SPIR-V core version number. 130 features->select_between_composites = true; in UpdateFeaturesBasedOnSpirvVersion() 131 features->copy_memory_permits_two_memory_accesses = true; in UpdateFeaturesBasedOnSpirvVersion() 132 features->uconvert_spec_constant_op = true; in UpdateFeaturesBasedOnSpirvVersion() 133 features->nonwritable_var_in_function_or_private = true; in UpdateFeaturesBasedOnSpirvVersion() 169 const auto env = context_->target_env; [all …]
|
| /third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/ |
| D | jsonToSpirv.cpp | 1 // Copyright (c) 2014-2020 The Khronos Group Inc. 92 std::pair<bool, std::string> ReadFile(const std::string& path) in ReadFile() 94 std::ifstream fstream(path, std::ios::in); in ReadFile() 96 std::string contents; in ReadFile() 97 fstream.seekg(0, std::ios::end); in ReadFile() 99 fstream.seekg(0, std::ios::beg); in ReadFile() 100 contents.assign((std::istreambuf_iterator<char>(fstream)), in ReadFile() 101 std::istreambuf_iterator<char>()); in ReadFile() 102 return std::make_pair(true, contents); in ReadFile() 104 return std::make_pair(false, ""); in ReadFile() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/ |
| D | jsonToSpirv.cpp | 1 // Copyright (c) 2014-2020 The Khronos Group Inc. 92 std::pair<bool, std::string> ReadFile(const std::string& path) in ReadFile() 94 std::ifstream fstream(path, std::ios::in); in ReadFile() 96 std::string contents; in ReadFile() 97 fstream.seekg(0, std::ios::end); in ReadFile() 99 fstream.seekg(0, std::ios::beg); in ReadFile() 100 contents.assign((std::istreambuf_iterator<char>(fstream)), in ReadFile() 101 std::istreambuf_iterator<char>()); in ReadFile() 102 return std::make_pair(true, contents); in ReadFile() 104 return std::make_pair(false, ""); in ReadFile() [all …]
|
| /third_party/spirv-tools/source/val/ |
| D | validation_state.h | 1 // Copyright (c) 2015-2016 The Khronos Group Inc. 7 // http://www.apache.org/licenses/LICENSE-2.0 38 #include "spirv-tools/libspirv.h" 63 /// This class manages the state of the SPIR-V validation as it is being parsed. 92 // SPIR-V 1.4 allows us to select between any two composite values 96 // SPIR-V 1.4 allows two memory access operands for OpCopyMemory and 100 // SPIR-V 1.4 allows UConvert as a spec constant op in any environment. 104 // SPIR-V 1.4 allows Function and Private variables to be NonWritable 128 /// Sets the SPIR-V version of this module. 131 /// Gets the SPIR-V version of this module. [all …]
|
| /third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/doc/spec/ |
| D | i16960.htm | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd… 78 HREF="r9288.htm#V4L2-STD-ID" 83 HREF="x5953.htm#V4L2-BUF-TYPE" 88 HREF="x2123.htm#V4L2-COLORSPACE" 93 HREF="r13317.htm#V4L2-CTRL-TYPE" 98 HREF="x6386.htm#V4L2-FIELD" 103 HREF="r8724.htm#V4L2-FRMIVALTYPES" 108 HREF="r8494.htm#V4L2-FRMSIZETYPES" 113 HREF="x5953.htm#V4L2-MEMORY" 118 HREF="r11946.htm#V4L2-PRIORITY" [all …]
|
| /third_party/skia/third_party/externals/spirv-cross/ |
| D | spirv_parser.cpp | 2 * Copyright 2018-2021 Arm Limited 3 * SPDX-License-Identifier: Apache-2.0 OR MIT 9 * http://www.apache.org/licenses/LICENSE-2.0 20 * 1. The Apache License, Version 2.0, found at <http://www.apache.org/licenses/LICENSE-2.0>, or 27 using namespace std; 65 case 0x10000: // SPIR-V 1.0 in is_valid_spirv_version() 66 case 0x10100: // SPIR-V 1.1 in is_valid_spirv_version() 67 case 0x10200: // SPIR-V 1.2 in is_valid_spirv_version() 68 case 0x10300: // SPIR-V 1.3 in is_valid_spirv_version() 69 case 0x10400: // SPIR-V 1.4 in is_valid_spirv_version() [all …]
|
| /third_party/spirv-headers/tools/buildHeaders/ |
| D | jsonToSpirv.cpp | 1 // Copyright (c) 2014-2020 The Khronos Group Inc. 40 // Returns true if the given string is a valid SPIR-V version. 41 bool validSpirvVersionString(const std::string s) { in validSpirvVersionString() 54 bool validSpirvVersionStringSpecifier(const std::string s) { in validSpirvVersionStringSpecifier() 61 bool IsLegacyDoublyEnabledInstruction(const std::string& instruction) { in IsLegacyDoublyEnabledInstruction() 62 static std::unordered_set<std::string> allowed = { in IsLegacyDoublyEnabledInstruction() 145 bool EnumValue::IsValid(OperandClass oc, const std::string& context) const in IsValid() 149 …std::cerr << "Error: " << context << " " << name << " \"version\" must be set, probably to \"None\… in IsValid() 152 …std::cerr << "Error: " << context << " " << name << " \"version\" is invalid: " << firstVersion <<… in IsValid() 156 …std::cerr << "Error: " << context << " " << name << " \"lastVersion\" is invalid: " << lastVersion… in IsValid() [all …]
|
| /third_party/skia/third_party/externals/tint/src/writer/spirv/ |
| D | builder.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 62 /// Sanitize a program in preparation for generating SPIR-V. 70 /// Builder class to create SPIR-V instructions from a module. 89 std::vector<uint32_t> access_chain_indices; 97 /// Generates the SPIR-V instructions for the given program 98 /// @returns true if the SPIR-V was successfully built 102 const std::string& error() const { return error_; } in error() 122 void iterate(std::function<void(const Instruction&)> cb) const; 126 /// @param cap the capability to set 127 void push_capability(uint32_t cap); [all …]
|