Home
last modified time | relevance | path

Searched refs:SpirvShader (Results 1 – 25 of 38) sorted by relevance

12

/external/swiftshader/src/Pipeline/
DSpirvShaderControlFlow.cpp31 SpirvShader::Block::Block(InsnIterator begin, InsnIterator end) in Block()
120 void SpirvShader::Function::TraverseReachableBlocks(Block::ID id, SpirvShader::Block::Set &reachabl… in TraverseReachableBlocks()
132 void SpirvShader::Function::AssignBlockFields() in AssignBlockFields()
160 void SpirvShader::Function::ForeachBlockDependency(Block::ID blockId, std::function<void(Block::ID)… in ForeachBlockDependency()
173 bool SpirvShader::Function::ExistsPath(Block::ID from, Block::ID to, Block::ID notPassingThrough) c… in ExistsPath()
198 void SpirvShader::EmitState::addOutputActiveLaneMaskEdge(Block::ID to, RValue<SIMD::Int> mask) in addOutputActiveLaneMaskEdge()
203 void SpirvShader::EmitState::addActiveLaneMaskEdge(Block::ID from, Block::ID to, RValue<SIMD::Int> … in addActiveLaneMaskEdge()
219 RValue<SIMD::Int> SpirvShader::GetActiveLaneMaskEdge(EmitState *state, Block::ID from, Block::ID to… in GetActiveLaneMaskEdge()
227 void SpirvShader::EmitBlocks(Block::ID id, EmitState *state, Block::ID ignore /* = 0 */) const in EmitBlocks()
287 void SpirvShader::EmitNonLoop(EmitState *state) const in EmitNonLoop()
[all …]
DSpirvShaderDebug.hpp53 struct PrintValue::Ty<sw::SpirvShader::Object::ID>
55 …static inline std::string fmt(sw::SpirvShader::Object::ID v) { return "Object<" + std::to_string(v… in fmt()
56 static inline std::vector<Value *> val(sw::SpirvShader::Object::ID v) { return {}; } in val()
59 struct PrintValue::Ty<sw::SpirvShader::Type::ID>
61 …static inline std::string fmt(sw::SpirvShader::Type::ID v) { return "Type<" + std::to_string(v.val… in fmt()
62 static inline std::vector<Value *> val(sw::SpirvShader::Type::ID v) { return {}; } in val()
65 struct PrintValue::Ty<sw::SpirvShader::Block::ID>
67 …static inline std::string fmt(sw::SpirvShader::Block::ID v) { return "Block<" + std::to_string(v.v… in fmt()
68 static inline std::vector<Value *> val(sw::SpirvShader::Block::ID v) { return {}; } in val()
132 struct PrintValue::Ty<sw::SpirvShader::Operand>
[all …]
DSpirvShaderMemory.cpp26 SpirvShader::EmitResult SpirvShader::EmitLoad(InsnIterator insn, EmitState *state) const in EmitLoad()
72 SpirvShader::EmitResult SpirvShader::EmitStore(InsnIterator insn, EmitState *state) const in EmitStore()
93 void SpirvShader::Store(Object::ID pointerId, const Operand &value, bool atomic, std::memory_order … in Store()
120 SpirvShader::EmitResult SpirvShader::EmitVariable(InsnIterator insn, EmitState *state) const in EmitVariable()
242 SpirvShader::EmitResult SpirvShader::EmitCopyMemory(InsnIterator insn, EmitState *state) const in EmitCopyMemory()
279 SpirvShader::EmitResult SpirvShader::EmitMemoryBarrier(InsnIterator insn, EmitState *state) const in EmitMemoryBarrier()
288 void SpirvShader::VisitMemoryObjectInner(sw::SpirvShader::Type::ID id, sw::SpirvShader::Decorations… in VisitMemoryObjectInner()
351 void SpirvShader::VisitMemoryObject(Object::ID id, const MemoryVisitor &f) const in VisitMemoryObject()
375 SIMD::Pointer SpirvShader::GetPointerToData(Object::ID id, Int arrayIndex, EmitState const *state) … in GetPointerToData()
423 std::memory_order SpirvShader::MemoryOrder(spv::MemorySemanticsMask memorySemantics) in MemoryOrder()
[all …]
DSpirvShaderDebugger.cpp795 sw::SpirvShader::Function::ID function;
826 sw::SpirvShader::Object::ID variable;
892 sw::SpirvShader::Object::ID variable;
901 sw::SpirvShader::Object::ID value;
949 struct SpirvShader::Impl::Debugger : public vk::dbg::ClientEventListener
954 Debugger(const SpirvShader *shader, const std::shared_ptr<vk::dbg::Context> &ctx);
990 const SpirvShader *const shader; // The shader program being debugged
1078 void create(const SpirvShader *, const EmitState *, Object::ID);
1166 class sw::SpirvShader::Impl::Debugger::LocalVariableValue : public vk::dbg::Value
1223 class SpirvShader::Impl::Debugger::State
[all …]
DSpirvShader.cpp28 SpirvShader::SpirvShader( in SpirvShader() function in sw::SpirvShader
772 SpirvShader::~SpirvShader() in ~SpirvShader()
777 void SpirvShader::DeclareType(InsnIterator insn) in DeclareType()
827 SpirvShader::Object &SpirvShader::CreateConstant(InsnIterator insn) in CreateConstant()
840 void SpirvShader::ProcessInterfaceVariable(Object &object) in ProcessInterfaceVariable()
903 uint32_t SpirvShader::GetNumInputComponents(int32_t location) const in GetNumInputComponents()
922 void SpirvShader::ProcessExecutionMode(InsnIterator insn) in ProcessExecutionMode()
964 uint32_t SpirvShader::ComputeTypeSize(InsnIterator insn) in ComputeTypeSize()
1022 int SpirvShader::VisitInterfaceInner(Type::ID id, Decorations d, const InterfaceVisitor &f) const in VisitInterfaceInner()
1093 void SpirvShader::VisitInterface(Object::ID id, const InterfaceVisitor &f) const in VisitInterface()
[all …]
DComputeProgram.cpp40 ComputeProgram::ComputeProgram(vk::Device *device, SpirvShader const *shader, vk::PipelineLayout co… in ComputeProgram()
73 …routine->setInputBuiltin(shader, spv::BuiltInNumWorkgroups, [&](const SpirvShader::BuiltinMapping … in setWorkgroupBuiltins()
81 …routine->setInputBuiltin(shader, spv::BuiltInWorkgroupId, [&](const SpirvShader::BuiltinMapping &b… in setWorkgroupBuiltins()
89 …routine->setInputBuiltin(shader, spv::BuiltInWorkgroupSize, [&](const SpirvShader::BuiltinMapping … in setWorkgroupBuiltins()
97 …routine->setInputBuiltin(shader, spv::BuiltInNumSubgroups, [&](const SpirvShader::BuiltinMapping &… in setWorkgroupBuiltins()
102 …routine->setInputBuiltin(shader, spv::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMapping &… in setWorkgroupBuiltins()
145 …routine->setInputBuiltin(shader, spv::BuiltInLocalInvocationIndex, [&](const SpirvShader::BuiltinM… in setSubgroupBuiltins()
150 …routine->setInputBuiltin(shader, spv::BuiltInSubgroupId, [&](const SpirvShader::BuiltinMapping &bu… in setSubgroupBuiltins()
155 …routine->setInputBuiltin(shader, spv::BuiltInLocalInvocationId, [&](const SpirvShader::BuiltinMapp… in setSubgroupBuiltins()
163 …routine->setInputBuiltin(shader, spv::BuiltInGlobalInvocationId, [&](const SpirvShader::BuiltinMap… in setSubgroupBuiltins()
[all …]
DSpirvShaderArithmetic.cpp24 SpirvShader::EmitResult SpirvShader::EmitVectorTimesScalar(InsnIterator insn, EmitState *state) con… in EmitVectorTimesScalar()
39 SpirvShader::EmitResult SpirvShader::EmitMatrixTimesVector(InsnIterator insn, EmitState *state) con… in EmitMatrixTimesVector()
59 SpirvShader::EmitResult SpirvShader::EmitVectorTimesMatrix(InsnIterator insn, EmitState *state) con… in EmitVectorTimesMatrix()
79 SpirvShader::EmitResult SpirvShader::EmitMatrixTimesMatrix(InsnIterator insn, EmitState *state) con… in EmitMatrixTimesMatrix()
106 SpirvShader::EmitResult SpirvShader::EmitOuterProduct(InsnIterator insn, EmitState *state) const in EmitOuterProduct()
127 SpirvShader::EmitResult SpirvShader::EmitTranspose(InsnIterator insn, EmitState *state) const in EmitTranspose()
147 SpirvShader::EmitResult SpirvShader::EmitUnaryOp(InsnIterator insn, EmitState *state) const in EmitUnaryOp()
309 SpirvShader::EmitResult SpirvShader::EmitBinaryOp(InsnIterator insn, EmitState *state) const in EmitBinaryOp()
516 SpirvShader::EmitResult SpirvShader::EmitDot(InsnIterator insn, EmitState *state) const in EmitDot()
534 SIMD::Float SpirvShader::Dot(unsigned numComponents, Operand const &x, Operand const &y) const in Dot()
[all …]
DVertexProgram.cpp30 SpirvShader const *spirvShader, in VertexProgram()
42 …routine.setInputBuiltin(spirvShader, spv::BuiltInViewIndex, [&](const SpirvShader::BuiltinMapping … in VertexProgram()
47 …routine.setInputBuiltin(spirvShader, spv::BuiltInInstanceIndex, [&](const SpirvShader::BuiltinMapp… in VertexProgram()
53 …routine.setInputBuiltin(spirvShader, spv::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMappi… in VertexProgram()
DComputeProgram.hpp39 class ComputeProgram : public Coroutine<SpirvShader::YieldResult(
49 …ComputeProgram(vk::Device *device, SpirvShader const *spirvShader, vk::PipelineLayout const *pipel…
84 SpirvShader const *const shader;
DSpirvShaderImage.cpp90 SpirvShader::EmitResult SpirvShader::EmitImageSampleImplicitLod(Variant variant, InsnIterator insn,… in EmitImageSampleImplicitLod()
95 SpirvShader::EmitResult SpirvShader::EmitImageGather(Variant variant, InsnIterator insn, EmitState … in EmitImageGather()
103 SpirvShader::EmitResult SpirvShader::EmitImageSampleExplicitLod(Variant variant, InsnIterator insn,… in EmitImageSampleExplicitLod()
123 SpirvShader::EmitResult SpirvShader::EmitImageFetch(InsnIterator insn, EmitState *state) const in EmitImageFetch()
128 SpirvShader::EmitResult SpirvShader::EmitImageSample(ImageInstruction instruction, InsnIterator ins… in EmitImageSample()
147 void SpirvShader::EmitImageSampleUnconditional(Array<SIMD::Float> &out, ImageInstruction instructio… in EmitImageSampleUnconditional()
340 SpirvShader::EmitResult SpirvShader::EmitImageQuerySizeLod(InsnIterator insn, EmitState *state) con… in EmitImageQuerySizeLod()
352 SpirvShader::EmitResult SpirvShader::EmitImageQuerySize(InsnIterator insn, EmitState *state) const in EmitImageQuerySize()
364 SpirvShader::EmitResult SpirvShader::EmitImageQueryLod(InsnIterator insn, EmitState *state) const in EmitImageQueryLod()
369 void SpirvShader::GetImageDimensions(EmitState const *state, Type const &resultTy, Object::ID image… in GetImageDimensions()
[all …]
DSpirvShaderSampling.cpp33 SpirvShader::ImageSampler *SpirvShader::getImageSampler(uint32_t inst, vk::SampledImageDescriptor c… in getImageSampler()
96 std::shared_ptr<rr::Routine> SpirvShader::emitSamplerRoutine(ImageInstruction instruction, const Sa… in emitSamplerRoutine()
200 sw::FilterType SpirvShader::convertFilterMode(const vk::Sampler *sampler, VkImageViewType imageView… in convertFilterMode()
253 sw::MipmapType SpirvShader::convertMipmapMode(const vk::Sampler *sampler) in convertMipmapMode()
276 sw::AddressingMode SpirvShader::convertAddressingMode(int coordinateIndex, const vk::Sampler *sampl… in convertAddressingMode()
DSpirvShaderGroup.cpp21 struct SpirvShader::Impl::Group
30 const SpirvShader *shader, in BinaryOperation()
31 const SpirvShader::InsnIterator &insn, in BinaryOperation()
32 const SpirvShader::EmitState *state, in BinaryOperation()
37 SpirvShader::Operand value(shader, state, insn.word(5)); in BinaryOperation()
38 auto &type = shader->getType(SpirvShader::Type::ID(insn.word(1))); in BinaryOperation()
73 SpirvShader::OpcodeName(type.opcode()), insn.word(4)); in BinaryOperation()
79 SpirvShader::EmitResult SpirvShader::EmitGroupNonUniform(InsnIterator insn, EmitState *state) const in EmitGroupNonUniform()
147 if(getObject(idId).kind == SpirvShader::Object::Kind::Constant) in EmitGroupNonUniform()
DPixelProgram.cpp106 …routine.setInputBuiltin(spirvShader, spv::BuiltInViewIndex, [&](const SpirvShader::BuiltinMapping … in setBuiltins()
111 …routine.setInputBuiltin(spirvShader, spv::BuiltInFragCoord, [&](const SpirvShader::BuiltinMapping … in setBuiltins()
119 …routine.setInputBuiltin(spirvShader, spv::BuiltInPointCoord, [&](const SpirvShader::BuiltinMapping… in setBuiltins()
125 …routine.setInputBuiltin(spirvShader, spv::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMappi… in setBuiltins()
130 …routine.setInputBuiltin(spirvShader, spv::BuiltInHelperInvocation, [&](const SpirvShader::BuiltinM… in setBuiltins()
208 …outputMasks[i] = ((spirvShader->outputs[i * 4 + 0].Type != SpirvShader::ATTRIBTYPE_UNUSED) ? 0x1 :… in applyShader()
209 … ((spirvShader->outputs[i * 4 + 1].Type != SpirvShader::ATTRIBTYPE_UNUSED) ? 0x2 : 0x0) | in applyShader()
210 … ((spirvShader->outputs[i * 4 + 2].Type != SpirvShader::ATTRIBTYPE_UNUSED) ? 0x4 : 0x0) | in applyShader()
211 … ((spirvShader->outputs[i * 4 + 3].Type != SpirvShader::ATTRIBTYPE_UNUSED) ? 0x8 : 0x0); in applyShader()
DSpirvShaderInstructions.cpp50 const char *SpirvShader::OpcodeName(spv::Op op) in OpcodeName()
55 bool SpirvShader::IsStatement(spv::Op op) in IsStatement()
DVertexRoutine.hpp52 SpirvShader const *spirvShader);
66 SpirvShader const *const spirvShader;
DSpirvShader.hpp150 class SpirvShader class
535 SpirvShader(uint32_t codeSerialID,
544 ~SpirvShader();
1045 Operand(const SpirvShader *shader, const EmitState *state, SpirvShader::Object::ID objectId);
1260 …k::ID blockID, InsnIterator insn, EmitState *state, std::unordered_set<SpirvShader::Block::ID> con…
1386 std::unordered_map<SpirvShader::Object::ID, Variable> variables;
1387 std::unordered_map<SpirvShader::Object::ID, SamplerCache> samplerCache;
1423 void createVariable(SpirvShader::Object::ID id, uint32_t componentCount) in createVariable()
1429 Variable &getVariable(SpirvShader::Object::ID id) in getVariable()
1438 void setImmutableInputBuiltins(SpirvShader const *shader);
[all …]
DBUILD.gn26 "SpirvShader.hpp",
42 "SpirvShader.cpp",
/external/swiftshader/src/Vulkan/
DVkPipelineCache.hpp34 class SpirvShader;
88 …inline std::shared_ptr<sw::SpirvShader> getOrCreateShader(const PipelineCache::SpirvShaderKey &key…
92 ComputeProgramKey(const sw::SpirvShader *shader, const vk::PipelineLayout *layout) in ComputeProgramKey()
102 const sw::SpirvShader *getShader() const { return shader; } in getShader()
106 const sw::SpirvShader *shader;
133 …std::map<SpirvShaderKey, std::shared_ptr<sw::SpirvShader>> spirvShaders GUARDED_BY(spirvShadersMut…
158 std::shared_ptr<sw::SpirvShader> PipelineCache::getOrCreateShader(const PipelineCache::SpirvShaderK… in getOrCreateShader()
DVkPipeline.hpp25 class SpirvShader;
111 const std::shared_ptr<sw::SpirvShader> getShader(const VkShaderStageFlagBits &stage) const;
114 …void setShader(const VkShaderStageFlagBits &stage, const std::shared_ptr<sw::SpirvShader> spirvSha…
115 std::shared_ptr<sw::SpirvShader> vertexShader;
116 std::shared_ptr<sw::SpirvShader> fragmentShader;
152 std::shared_ptr<sw::SpirvShader> shader;
/external/swiftshader/src/Device/
DSetupProcessor.hpp65 SpirvShader::InterfaceComponent gradient[MAX_INTERFACE_COMPONENTS];
79 …(const vk::GraphicsState &pipelineState, const sw::SpirvShader *fragmentShader, const sw::SpirvSha…
DPixelProcessor.hpp29 class SpirvShader;
156 …(const vk::GraphicsState &pipelineState, const sw::SpirvShader *fragmentShader, const sw::SpirvSha…
158 … const SpirvShader *pixelShader, const vk::DescriptorSet::Bindings &descriptorSets);
DVertexProcessor.hpp78 unsigned int attribType : BITS(SpirvShader::ATTRIBTYPE_LAST);
97 …const State update(const vk::GraphicsState &pipelineState, const sw::SpirvShader *vertexShader, co…
99SpirvShader const *vertexShader, const vk::DescriptorSet::Bindings &descriptorSets);
DQuadRasterizer.hpp28 QuadRasterizer(const PixelProcessor::State &state, SpirvShader const *spirvShader);
52 const SpirvShader *const spirvShader;
DPixelProcessor.cpp85 …(const vk::GraphicsState &pipelineState, const sw::SpirvShader *fragmentShader, const sw::SpirvSha… in update()
157 const SpirvShader *pixelShader, in routine()
DVertexProcessor.cpp68 …texProcessor::update(const vk::GraphicsState &pipelineState, const sw::SpirvShader *vertexShader, … in update()
92 SpirvShader const *vertexShader, in routine()

12