Home
last modified time | relevance | path

Searched refs:spv (Results 1 – 25 of 668) sorted by relevance

12345678910>>...27

/third_party/glslang/SPIRV/
DSPVRemapper.cpp47 namespace spv { namespace
64 const spv::Op opCode = asOpCode(word); in asOpCodeHash()
69 case spv::OpExtInst: in asOpCodeHash()
78 spirvbin_t::range_t spirvbin_t::literalRange(spv::Op opCode) const in literalRange()
83 case spv::OpTypeFloat: // fall through... in literalRange()
84 case spv::OpTypePointer: return range_t(2, 3); in literalRange()
85 case spv::OpTypeInt: return range_t(2, 4); in literalRange()
88 case spv::OpTypeSampler: return range_t(3, 8); in literalRange()
89 case spv::OpTypeVector: // fall through in literalRange()
90 case spv::OpTypeMatrix: // ... in literalRange()
[all …]
DGlslangToSpv.cpp46 namespace spv { namespace
76 SpecConstantOpModeGuard(spv::Builder* builder) in SpecConstantOpModeGuard()
89 spv::Builder* builder_;
95 …OpDecorations(spv::Decoration precision, spv::Decoration noContraction, spv::Decoration nonUniform… in OpDecorations()
104 spv::Decoration precision;
107 void addNoContraction(spv::Builder&, spv::Id) const { } in addNoContraction()
108 void addNonUniform(spv::Builder&, spv::Id) const { } in addNonUniform()
110 …void addNoContraction(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, noContraction);… in addNoContraction()
111 … void addNonUniform(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, nonUniform); } in addNonUniform()
113 spv::Decoration noContraction;
[all …]
DSPVRemapper.h44 namespace spv {
81 namespace spv {
109 namespace spv {
115 …spirvbin_t(int verbose = 0) : entryPoint(spv::NoResult), largestNewId(0), verbose(verbose), errorL… in entryPoint()
121 void remap(std::vector<std::uint32_t>& spv, std::uint32_t opts = DO_EVERYTHING);
137 typedef std::unordered_map<spv::Id, spv::Id> idmap_t;
138 typedef std::unordered_set<spv::Id> idset_t;
139 typedef std::unordered_map<spv::Id, int> blockmap_t;
144 typedef std::unordered_map<std::string, spv::Id> namemap_t;
149 typedef std::function<void(spv::Id&)> idfn_t;
[all …]
DInReadableOrder.cpp56 using spv::Block;
57 using spv::Id;
64 ReadableOrderTraverser(std::function<void(Block*, spv::ReachReason, Block*)> callback) in ReadableOrderTraverser()
71 void visit(Block* block, spv::ReachReason why, Block* header) in visit()
74 if (why == spv::ReachViaControlFlow) { in visit()
88 if (mergeInst->getOpCode() == spv::OpLoopMerge) { in visit()
95 if (why == spv::ReachViaControlFlow) { in visit()
101 const spv::ReachReason continueWhy = in visit()
103 ? spv::ReachViaControlFlow in visit()
104 : spv::ReachDeadContinue; in visit()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShader.cpp71 spv::Op opcode = insn.opcode();
75 case spv::OpEntryPoint:
77 spv::ExecutionModel executionModel = spv::ExecutionModel(insn.word(1));
97 case spv::OpExecutionMode:
101 case spv::OpDecorate:
104 auto decoration = static_cast<spv::Decoration>(insn.word(2));
111 case spv::DecorationDescriptorSet:
114 case spv::DecorationBinding:
117 case spv::DecorationInputAttachmentIndex:
120 case spv::DecorationSample:
[all …]
DSpirvShaderInstructions.cpp23 const char *SpirvShader::OpcodeName(spv::Op op) in OpcodeName()
29 bool SpirvShader::IsStatement(spv::Op op) in IsStatement()
39 spv::HasResultAndType(op, &hasResult, &hasResultType); in IsStatement()
46 case spv::OpNop: in IsStatement()
47 case spv::OpStore: in IsStatement()
48 case spv::OpCopyMemory: in IsStatement()
49 case spv::OpCopyMemorySized: in IsStatement()
50 case spv::OpImageWrite: in IsStatement()
51 case spv::OpEmitVertex: in IsStatement()
52 case spv::OpEndPrimitive: in IsStatement()
[all …]
DSpirvShaderSpec.cpp23 auto opcode = static_cast<spv::Op>(insn.word(3)); in EvalSpecConstantOp()
27 case spv::OpIAdd: in EvalSpecConstantOp()
28 case spv::OpISub: in EvalSpecConstantOp()
29 case spv::OpIMul: in EvalSpecConstantOp()
30 case spv::OpUDiv: in EvalSpecConstantOp()
31 case spv::OpSDiv: in EvalSpecConstantOp()
32 case spv::OpUMod: in EvalSpecConstantOp()
33 case spv::OpSMod: in EvalSpecConstantOp()
34 case spv::OpSRem: in EvalSpecConstantOp()
35 case spv::OpShiftRightLogical: in EvalSpecConstantOp()
[all …]
DSpirvShaderMemory.cpp28 bool atomic = (insn.opcode() == spv::OpAtomicLoad); in EmitLoad()
39 …ASSERT(!atomic || getType(getType(pointer).element).opcode() == spv::OpTypeInt); // Vulkan 1.1: "… in EmitLoad()
41 if(pointerTy.storageClass == spv::StorageClassUniformConstant) in EmitLoad()
52 …auto memorySemantics = static_cast<spv::MemorySemanticsMask>(getObject(semanticsId).constantValue[… in EmitLoad()
74 bool atomic = (insn.opcode() == spv::OpAtomicStore); in EmitStore()
82 …auto memorySemantics = static_cast<spv::MemorySemanticsMask>(getObject(semanticsId).constantValue[… in EmitStore()
99 …ASSERT(!atomic || elementTy.opcode() == spv::OpTypeInt); // Vulkan 1.1: "Atomic instructions must… in Store()
129 case spv::StorageClassOutput: in EmitVariable()
130 case spv::StorageClassPrivate: in EmitVariable()
131 case spv::StorageClassFunction: in EmitVariable()
[all …]
DSpirvShaderArithmetic.cpp157 case spv::OpNot: in EmitUnaryOp()
158 case spv::OpLogicalNot: // logical not == bitwise not due to all-bits boolean representation in EmitUnaryOp()
161 case spv::OpBitFieldInsert: in EmitUnaryOp()
172 case spv::OpBitFieldSExtract: in EmitUnaryOp()
173 case spv::OpBitFieldUExtract: in EmitUnaryOp()
180 if(insn.opcode() == spv::OpBitFieldSExtract) in EmitUnaryOp()
189 case spv::OpBitReverse: in EmitUnaryOp()
204 case spv::OpBitCount: in EmitUnaryOp()
207 case spv::OpSNegate: in EmitUnaryOp()
210 case spv::OpFNegate: in EmitUnaryOp()
[all …]
DSpirvShaderGroup.cpp45 switch(spv::GroupOperation(insn.word(4))) in BinaryOperation()
47 case spv::GroupOperationReduce: in BinaryOperation()
56 case spv::GroupOperationInclusiveScan: in BinaryOperation()
63 case spv::GroupOperationExclusiveScan: in BinaryOperation()
85 auto scope = spv::Scope(GetConstScalarInt(insn.word(3))); in EmitGroupNonUniform()
86 …ASSERT_MSG(scope == spv::ScopeSubgroup, "Scope for Non Uniform Group Operations must be Subgroup f… in EmitGroupNonUniform()
92 case spv::OpGroupNonUniformElect: in EmitGroupNonUniform()
105 case spv::OpGroupNonUniformAll: in EmitGroupNonUniform()
112 case spv::OpGroupNonUniformAny: in EmitGroupNonUniform()
119 case spv::OpGroupNonUniformAllEqual: in EmitGroupNonUniform()
[all …]
/third_party/glslang/Test/
Dhlsl.format.rwtexture.frag3 [[spv::format_rgba32f]] RWTexture1D <float4> g_tTex1df4 : register(t0);
4 [[spv::format_rg32f]] RWTexture1D <int4> g_tTex1di4;
5 [[spv::format_rgba8snorm]] RWTexture1D <uint4> g_tTex1du4;
7 [[spv::format_rgba8i]] RWTexture2D <float4> g_tTex2df4;
8 [[spv::format_r11fg11fb10f]] RWTexture2D <int4> g_tTex2di4;
9 [[spv::format_r8snorm]] RWTexture2D <uint4> g_tTex2du4;
11 [[spv::format_rg8]] [[spv::nonwritable]] RWTexture3D <float4> g_tTex3df4;
12 [[spv::format_rgba16i]] [[spv::nonreadable]] RWTexture3D <int4> g_tTex3di4;
13 [[spv::format_r8i]] [[spv::nonwritable]] [[spv::nonreadable]] RWTexture3D <uint4> g_tTex3du4;
15 [[spv::format_rgba8ui]] RWTexture1DArray <float4> g_tTex1df4a;
[all …]
Druntests43 rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv
126 run -i --hlsl-offsets -H spv.hlslOffsets.vert > $TARGETDIR/spv.hlslOffsets.vert.out
127 diff -b $BASEDIR/spv.hlslOffsets.vert.out $TARGETDIR/spv.hlslOffsets.vert.out || HASERROR=1
157 run -V -C spv.noLocation.vert > $TARGETDIR/spv.noLocation.vert.out
158 diff -b $BASEDIR/spv.noLocation.vert.out $TARGETDIR/spv.noLocation.vert.out || HASERROR=1
159 run -G -H --aml spv.noBuiltInLoc.vert > $TARGETDIR/spv.noBuiltInLoc.vert.out
160 diff -b $BASEDIR/spv.noBuiltInLoc.vert.out $TARGETDIR/spv.noBuiltInLoc.vert.out || HASERROR=1
161 run -G spv.looseUniformNoLoc.vert > $TARGETDIR/spv.looseUniformNoLoc.vert.out
162 diff -b $BASEDIR/spv.looseUniformNoLoc.vert.out $TARGETDIR/spv.looseUniformNoLoc.vert.out || HASERR…
169 -G -H spv.debugInfo.frag --rsb frag 3 > $TARGETDIR/spv.debugInfo.frag.out
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DSpirvUtils.cpp19 spv::ExecutionModel ShaderStageToExecutionModel(SingleShaderStage stage) { in ShaderStageToExecutionModel()
22 return spv::ExecutionModelVertex; in ShaderStageToExecutionModel()
24 return spv::ExecutionModelFragment; in ShaderStageToExecutionModel()
26 return spv::ExecutionModelGLCompute; in ShaderStageToExecutionModel()
31 SingleShaderStage ExecutionModelToShaderStage(spv::ExecutionModel model) { in ExecutionModelToShaderStage()
33 case spv::ExecutionModelVertex: in ExecutionModelToShaderStage()
35 case spv::ExecutionModelFragment: in ExecutionModelToShaderStage()
37 case spv::ExecutionModelGLCompute: in ExecutionModelToShaderStage()
44 wgpu::TextureViewDimension SpirvDimToTextureViewDimension(spv::Dim dim, bool arrayed) { in SpirvDimToTextureViewDimension()
46 case spv::Dim::Dim1D: in SpirvDimToTextureViewDimension()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/spirv/
Dspirv_instruction_parser_autogen.cpp22 void GetInstructionOpAndLength(const uint32_t *_instruction, spv::Op *opOut, uint32_t *lengthOut) in GetInstructionOpAndLength()
25 *opOut = static_cast<spv::Op>(_instruction[0] & kOpMask); in GetInstructionOpAndLength()
30 spv::Op _op; in ParseUndef()
33 ASSERT(_op == spv::OpUndef); in ParseUndef()
40 spv::Op _op; in ParseSourceContinued()
43 ASSERT(_op == spv::OpSourceContinued); in ParseSourceContinued()
50 spv::SourceLanguage *sourceLanguage, in ParseSource()
55 spv::Op _op; in ParseSource()
58 ASSERT(_op == spv::OpSource); in ParseSource()
60 *sourceLanguage = spv::SourceLanguage(_instruction[_o++]); in ParseSource()
[all …]
Dspirv_instruction_builder_autogen.cpp23 uint32_t MakeLengthOp(size_t length, spv::Op op) in MakeLengthOp()
47 blob->push_back(spv::MagicNumber); in WriteSpirvHeader()
59 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpNop); in WriteNop()
67 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpUndef); in WriteUndef()
79 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpSourceContinued); in WriteSourceContinued()
82 spv::SourceLanguage sourceLanguage, in WriteSource()
104 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpSource); in WriteSource()
116 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpSourceExtension); in WriteSourceExtension()
129 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpName); in WriteName()
143 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpMemberName); in WriteMemberName()
[all …]
/third_party/glslang/gtests/
DRemap.FromFile.cpp88 … { "remap.basic.none.frag", "main", Source::GLSL, spv::spirvbin_t::NONE },
89 …{ "remap.basic.everything.frag", "main", Source::GLSL, spv::spirvbin_t::DO_EVERYTHING…
90 … { "remap.basic.dcefunc.frag", "main", Source::GLSL, spv::spirvbin_t::DCE_FUNCS },
91 … { "remap.basic.strip.frag", "main", Source::GLSL, spv::spirvbin_t::STRIP },
92 …{ "remap.specconst.comp", "main", Source::GLSL, spv::spirvbin_t::DO_EVERYTHING…
93 … { "remap.switch.none.frag", "main", Source::GLSL, spv::spirvbin_t::NONE },
94 …{ "remap.switch.everything.frag", "main", Source::GLSL, spv::spirvbin_t::DO_EVERYTHING…
95 … { "remap.literal64.none.spv", "main", Source::GLSL, spv::spirvbin_t::NONE },
96 …{ "remap.literal64.everything.spv", "main", Source::GLSL, spv::spirvbin_t::DO_EVERYTHING…
97 … { "remap.if.none.frag", "main", Source::GLSL, spv::spirvbin_t::NONE },
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/wasm/
Dtest.js23 const spv = await spirvTools(); constant
27 const disFileResult = spv.dis(
29 spv.SPV_ENV_UNIVERSAL_1_3,
30 spv.SPV_BINARY_TO_TEXT_OPTION_INDENT |
31 spv.SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES |
32 spv.SPV_BINARY_TO_TEXT_OPTION_COLOR
46 const asResult = spv.as(
48 spv.SPV_ENV_UNIVERSAL_1_3,
49 spv.SPV_TEXT_TO_BINARY_OPTION_NONE
54 const disResult = spv.dis(
[all …]
/third_party/spirv-tools/test/wasm/
Dtest.js23 const spv = await spirvTools(); constant
27 const disFileResult = spv.dis(
29 spv.SPV_ENV_UNIVERSAL_1_3,
30 spv.SPV_BINARY_TO_TEXT_OPTION_INDENT |
31 spv.SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES |
32 spv.SPV_BINARY_TO_TEXT_OPTION_COLOR
46 const asResult = spv.as(
48 spv.SPV_ENV_UNIVERSAL_1_3,
49 spv.SPV_TEXT_TO_BINARY_OPTION_NONE
54 const disResult = spv.dis(
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/wasm/
Dtest.js23 const spv = await spirvTools(); constant
27 const disFileResult = spv.dis(
29 spv.SPV_ENV_UNIVERSAL_1_3,
30 spv.SPV_BINARY_TO_TEXT_OPTION_INDENT |
31 spv.SPV_BINARY_TO_TEXT_OPTION_FRIENDLY_NAMES |
32 spv.SPV_BINARY_TO_TEXT_OPTION_COLOR
46 const asResult = spv.as(
48 spv.SPV_ENV_UNIVERSAL_1_3,
49 spv.SPV_TEXT_TO_BINARY_OPTION_NONE
54 const disResult = spv.dis(
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DBuildSPIRV.cpp192 spirv::LiteralInteger(fieldIndex), spv::DecorationOffset, in Encode()
203 spv::DecorationMatrixStride, {spirv::LiteralInteger(fieldInfo.matrixStride)}); in Encode()
244 spv::ExecutionMode GetGeometryInputExecutionMode(TLayoutPrimitiveType primitiveType) in GetGeometryInputExecutionMode()
255 return spv::ExecutionModeInputPoints; in GetGeometryInputExecutionMode()
257 return spv::ExecutionModeInputLines; in GetGeometryInputExecutionMode()
259 return spv::ExecutionModeInputLinesAdjacency; in GetGeometryInputExecutionMode()
261 return spv::ExecutionModeTriangles; in GetGeometryInputExecutionMode()
263 return spv::ExecutionModeInputTrianglesAdjacency; in GetGeometryInputExecutionMode()
272 spv::ExecutionMode GetGeometryOutputExecutionMode(TLayoutPrimitiveType primitiveType) in GetGeometryOutputExecutionMode()
283 return spv::ExecutionModeOutputPoints; in GetGeometryOutputExecutionMode()
[all …]
/third_party/glslang/StandAlone/
Dspirv-remap.cpp78 void read(std::vector<SpvWord>& spv, const std::string& inFilename, int verbosity) in read() argument
85 spv.clear(); in read()
93 spv.reserve(size_t(fp.tellg()) / sizeof(SpvWord)); in read()
101 spv.push_back(inWord); in read()
108 void write(std::vector<SpvWord>& spv, const std::string& outFile, int verbosity) in write() argument
123 for (auto it = spv.cbegin(); it != spv.cend(); ++it) { in write()
163 std::vector<SpvWord> spv; in execute() local
164 read(spv, filename, verbosity); in execute()
165 spv::spirvbin_t(verbosity).remap(spv, opts); in execute()
169 write(spv, outfile, verbosity); in execute()
[all …]
/third_party/spirv-headers/tools/buildHeaders/
Dmain.cpp40 spv::TLanguage Language;
75 Language = spv::ELangAll; in ProcessArguments()
85 Language = spv::ELangC; in ProcessArguments()
87 Language = spv::ELangCPP; in ProcessArguments()
89 Language = spv::ELangCPP11; in ProcessArguments()
91 Language = spv::ELangJSON; in ProcessArguments()
93 Language = spv::ELangLua; in ProcessArguments()
95 Language = spv::ELangPython; in ProcessArguments()
97 Language = spv::ELangCSharp; in ProcessArguments()
99 Language = spv::ELangD; in ProcessArguments()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder.cc305 push_memory_model(spv::Op::OpMemoryModel, in Build()
385 Instruction{spv::Op::OpCapability, {Operand::Int(cap)}}); in push_capability()
390 if (!push_function_inst(spv::Op::OpLabel, {Operand::Int(id)})) { in GenerateLabel()
427 if (!push_function_inst(spv::Op::OpBranch, in GenerateBreakStatement()
439 if (!push_function_inst(spv::Op::OpBranch, in GenerateContinueStatement()
450 if (!push_function_inst(spv::Op::OpKill, {})) { in GenerateDiscardStatement()
485 push_entry_point(spv::Op::OpEntryPoint, operands); in GenerateEntryPoint()
496 spv::Op::OpExecutionMode, in GenerateExecutionModes()
544 push_type(spv::Op::OpSpecConstantComposite, wgsize_ops); in GenerateExecutionModes()
545 push_annot(spv::Op::OpDecorate, in GenerateExecutionModes()
[all …]
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/
Dmain.cpp40 spv::TLanguage Language;
74 Language = spv::ELangAll; in ProcessArguments()
84 Language = spv::ELangC; in ProcessArguments()
86 Language = spv::ELangCPP; in ProcessArguments()
88 Language = spv::ELangCPP11; in ProcessArguments()
90 Language = spv::ELangJSON; in ProcessArguments()
92 Language = spv::ELangLua; in ProcessArguments()
94 Language = spv::ELangPython; in ProcessArguments()
96 Language = spv::ELangCSharp; in ProcessArguments()
98 Language = spv::ELangD; in ProcessArguments()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/
Dmain.cpp40 spv::TLanguage Language;
74 Language = spv::ELangAll; in ProcessArguments()
84 Language = spv::ELangC; in ProcessArguments()
86 Language = spv::ELangCPP; in ProcessArguments()
88 Language = spv::ELangCPP11; in ProcessArguments()
90 Language = spv::ELangJSON; in ProcessArguments()
92 Language = spv::ELangLua; in ProcessArguments()
94 Language = spv::ELangPython; in ProcessArguments()
96 Language = spv::ELangCSharp; in ProcessArguments()
98 Language = spv::ELangD; in ProcessArguments()
[all …]

12345678910>>...27