/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | ComputeProgram.cpp | 57 SpirvRoutine routine(pipelineLayout); in generate() local 58 shader->emitProlog(&routine); in generate() 59 emit(&routine); in generate() 60 shader->emitEpilog(&routine); in generate() 61 shader->clearPhis(&routine); in generate() 64 void ComputeProgram::setWorkgroupBuiltins(Pointer<Byte> data, SpirvRoutine *routine, Int workgroupI… in setWorkgroupBuiltins() argument 68 routine->numWorkgroups = *Pointer<Int4>(data + OFFSET(Data, numWorkgroups)); in setWorkgroupBuiltins() 69 …routine->workgroupID = Insert(Insert(Insert(Int4(0), workgroupID[X], X), workgroupID[Y], Y), workg… in setWorkgroupBuiltins() 70 routine->workgroupSize = *Pointer<Int4>(data + OFFSET(Data, workgroupSize)); in setWorkgroupBuiltins() 71 routine->subgroupsPerWorkgroup = *Pointer<Int>(data + OFFSET(Data, subgroupsPerWorkgroup)); in setWorkgroupBuiltins() [all …]
|
D | VertexProgram.cpp | 35 routine.setImmutableInputBuiltins(spirvShader); in VertexProgram() 39 routine.viewID = *Pointer<Int>(data + OFFSET(DrawData, viewID)); in VertexProgram() 40 routine.instanceID = *Pointer<Int>(data + OFFSET(DrawData, instanceID)); in VertexProgram() 42 …routine.setInputBuiltin(spirvShader, spv::BuiltInViewIndex, [&](const SpirvShader::BuiltinMapping … in VertexProgram() 44 value[builtin.FirstComponent] = As<SIMD::Float>(SIMD::Int(routine.viewID)); in VertexProgram() 47 …routine.setInputBuiltin(spirvShader, spv::BuiltInInstanceIndex, [&](const SpirvShader::BuiltinMapp… in VertexProgram() 50 value[builtin.FirstComponent] = As<SIMD::Float>(SIMD::Int(routine.instanceID)); in VertexProgram() 53 …routine.setInputBuiltin(spirvShader, spv::BuiltInSubgroupSize, [&](const SpirvShader::BuiltinMappi… in VertexProgram() 58 routine.device = device; in VertexProgram() 59 routine.descriptorSets = data + OFFSET(DrawData, descriptorSets); in VertexProgram() [all …]
|
D | PixelProgram.cpp | 72 routine.setImmutableInputBuiltins(spirvShader); in setBuiltins() 92 routine.fragCoord[0] = SIMD::Float(Float(x)) + SIMD::Float(x0, x1, x0, x1); in setBuiltins() 93 routine.fragCoord[1] = SIMD::Float(Float(y)) + SIMD::Float(y0, y0, y1, y1); in setBuiltins() 94 routine.fragCoord[2] = z[0]; // sample 0 in setBuiltins() 95 routine.fragCoord[3] = w; in setBuiltins() 97 routine.invocationsPerSubgroup = SIMD::Width; in setBuiltins() 98 routine.helperInvocation = ~maskAny(cMask, samples); in setBuiltins() 99 routine.windowSpacePosition[0] = x + SIMD::Int(0, 1, 0, 1); in setBuiltins() 100 routine.windowSpacePosition[1] = y + SIMD::Int(0, 0, 1, 1); in setBuiltins() 101 routine.viewID = *Pointer<Int>(data + OFFSET(DrawData, viewID)); in setBuiltins() [all …]
|
D | SpirvShaderMemory.cpp | 122 auto routine = state->routine; in EmitVariable() local 134 auto base = &routine->getVariable(resultId)[0]; in EmitVariable() 143 auto base = &routine->workgroupMemory[0]; in EmitVariable() 152 auto &dst = routine->getVariable(resultId); in EmitVariable() 157 dst[offset++] = routine->inputs[scalarSlot]; in EmitVariable() 161 auto base = &routine->getVariable(resultId)[0]; in EmitVariable() 173 uint32_t bindingOffset = routine->pipelineLayout->getBindingOffset(d.DescriptorSet, d.Binding); in EmitVariable() 174 Pointer<Byte> set = routine->descriptorSets[d.DescriptorSet]; // DescriptorSet* in EmitVariable() 191 state->createPointer(resultId, SIMD::Pointer(routine->descriptorSets[d.DescriptorSet], size)); in EmitVariable() 201 … state->createPointer(resultId, SIMD::Pointer(routine->pushConstants, vk::MAX_PUSH_CONSTANT_SIZE)); in EmitVariable() [all …]
|
D | ComputeProgram.hpp | 67 void emit(SpirvRoutine *routine); 68 void setWorkgroupBuiltins(Pointer<Byte> data, SpirvRoutine *routine, Int workgroupID[3]); 69 …void setSubgroupBuiltins(Pointer<Byte> data, SpirvRoutine *routine, Int workgroupID[3], SIMD::Int …
|
D | VertexRoutine.cpp | 31 : routine(pipelineLayout) in VertexRoutine() 35 spirvShader->emitProlog(&routine); in VertexRoutine() 107 routine.inputs[i + 0] = value.x; in readInput() 108 routine.inputs[i + 1] = value.y; in readInput() 109 routine.inputs[i + 2] = value.z; in readInput() 110 routine.inputs[i + 3] = value.w; in readInput() 121 auto &pos = routine.getVariable(it->second.Id); in computeClipFlags() 164 auto const &distance = routine.getVariable(it->second.Id)[it->second.FirstComponent + i]; in computeCullMask() 591 auto &position = routine.getVariable(it->second.Id); in writeCache() 633 auto psize = routine.getVariable(it->second.Id)[it->second.FirstComponent]; in writeCache() [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/ |
D | ReactorUnitTests.cpp | 75 auto routine = function(testName().c_str()); in TEST() local 78 int result = routine(&one[1], 2); in TEST() 113 static auto routine = secondary((testName() + "_secondary").c_str()); in TEST() local 114 return routine.getEntry(); in TEST() 134 auto routine = primary((testName() + "_primary").c_str()); in TEST() local 136 int result = routine(100, 20, -3); in TEST() 169 auto routine = function(testName().c_str()); in TEST() local 173 int result = routine(); in TEST() 184 int result = routine(); in TEST() 208 auto routine = function(testName().c_str()); in TEST() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | Coroutine.hpp | 28 StreamBase(const std::shared_ptr<Routine> &routine, Nucleus::CoroutineHandle handle) in StreamBase() argument 29 : routine(routine) in StreamBase() 35 auto pfn = (Nucleus::CoroutineDestroy *)routine->getEntry(Nucleus::CoroutineEntryDestroy); in ~StreamBase() 41 auto pfn = (Nucleus::CoroutineAwait *)routine->getEntry(Nucleus::CoroutineEntryAwait); in await() 46 std::shared_ptr<Routine> routine; member in rr::StreamBase 57 inline Stream(const std::shared_ptr<Routine> &routine, Nucleus::CoroutineHandle handle) in Stream() argument 58 : StreamBase(routine, handle) in Stream() 151 std::shared_ptr<Routine> routine; member in rr::Coroutine 176 routine = core->acquireCoroutine(name, cfg); in finalize() 190 auto pfn = (Sig *)routine->getEntry(Nucleus::CoroutineEntryBegin); in operator ()() [all …]
|
D | Routine.hpp | 43 explicit RoutineT(const std::shared_ptr<Routine> &routine) in RoutineT() argument 44 : routine(routine) in RoutineT() 46 if(routine) in RoutineT() 48 function = reinterpret_cast<FunctionType>(const_cast<void *>(routine->getEntry(0))); in RoutineT() 69 std::shared_ptr<Routine> routine; member in rr::RoutineT
|
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
D | VertexProcessor.cpp | 91 VertexProcessor::RoutineType VertexProcessor::routine(const State &state, in routine() function in sw::VertexProcessor 96 auto routine = routineCache->lookup(state); in routine() local 98 if(!routine) // Create one in routine() 102 routine = (*generator)("VertexRoutine_%0.8X", state.shaderID); in routine() 105 routineCache->add(state, routine); in routine() 108 return routine; in routine()
|
D | SetupProcessor.cpp | 97 SetupProcessor::RoutineType SetupProcessor::routine(const State &state) in routine() function in sw::SetupProcessor 99 auto routine = routineCache->lookup(state); in routine() local 101 if(!routine) in routine() 105 routine = generator->getRoutine(); in routine() 108 routineCache->add(state, routine); in routine() 111 return routine; in routine()
|
D | PixelProcessor.cpp | 179 PixelProcessor::RoutineType PixelProcessor::routine(const State &state, in routine() function in sw::PixelProcessor 184 auto routine = routineCache->lookup(state); in routine() local 186 if(!routine) in routine() 190 routine = (*generator)("PixelRoutine_%0.8X", state.shaderID); in routine() 193 routineCache->add(state, routine); in routine() 196 return routine; in routine()
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
D | SetupProcessor.cpp | 224 std::shared_ptr<Routine> SetupProcessor::routine(const State &state) in routine() function in sw::SetupProcessor 226 auto routine = routineCache->query(state); in routine() local 228 if(!routine) in routine() 232 routine = generator->getRoutine(); in routine() 235 routineCache->add(state, routine); in routine() 238 return routine; in routine()
|
/third_party/libunwind/doc/ |
D | unw_get_proc_info.tex | 19 The \Func{unw\_get\_proc\_info}() routine returns auxiliary 39 handler routine. This is sometimes called the \emph{personality} 40 routine. If the procedure does not define 41 a personality routine, the \Var{handler} member is cleared to 0. \\ 60 \Func{unw\_get\_proc\_info}() routine 66 \Func{unw\_get\_proc\_info}() routine 73 \Func{unw\_get\_proc\_info}() routine 80 members. If a single function/routine is split into multiple, 93 in the local address-space, this routine is also safe to use from a
|
D | unw_backtrace.tex | 23 \Func{unw\_backtrace}() is a convenient routine for obtaining the backtrace for 24 the calling program. The routine fills up to \Var{size} addresses in the array 25 pointed by \Var{buffer}. The routine is only available for local unwinding. 37 The routine returns the number of addresses stored in the array pointed by
|
D | unw_flush_cache.tex | 19 The \Func{unw\_flush\_cache}() routine flushes all cached info as it 25 flushed by a call to this routine. The address range specified by 36 The \Func{unw\_flush\_cache}() routine cannot fail and does not 41 The \Func{unw\_flush\_cache}() routine is thread-safe as well as safe to
|
D | unw_regname.tex | 19 The \Func{unw\_regname}() routine returns a printable name for 27 The \Func{unw\_regname}() routine cannot fail and always returns a 32 The \Func{unw\_regname}() routine is thread-safe as well as safe to
|
D | unw_is_fpreg.tex | 19 The \Func{unw\_is\_fpreg}() routine checks whether register number 22 This routine is normally implemented as a macro and applications 27 The \Func{unw\_is\_fpreg}() routine returns a non-zero value if
|
D | unw_get_accessors.tex | 19 The \Func{unw\_get\_accessors}() routine returns a pointer to a 32 The \Func{unw\_get\_accessors}() routine cannot fail and always 38 The \Func{unw\_get\_accessors}() routine is thread-safe as well as
|
D | unw_get_proc_info_by_ip.tex | 19 The \Func{unw\_get\_proc\_info\_by\_ip}() routine returns the same 28 The routine expects the followins arguments: \Var{as} is the 46 members. If a single function/routine is split into multiple, 59 address-space is passed in argument \Var{as}, this routine is also
|
D | unw_resume.tex | 19 The \Func{unw\_resume}() routine resumes execution at the stack frame 20 identified by \Var{cp}. The behavior of this routine differs 39 \Func{unw\_resume} routine then returns normally (that is, unlikely 70 local address-space, this routine is also safe to use from a signal
|
D | NOTES | 11 "personality" routine 34 chain with the unw_step() routine. The frame registers and the 39 unw_resume() routine can be used to resume execution at an arbitrary 42 is to support this routine only for the local case. Kevin, if you 43 feel gdb could benefit from such a routine, I'd be interested to hear
|
/third_party/ffmpeg/libavutil/ |
D | thread.h | 160 #define ff_thread_once(control, routine) pthread_once(control, routine) argument 175 static inline int ff_thread_once(char *control, void (*routine)(void)) in ff_thread_once() 178 routine(); in ff_thread_once()
|
/third_party/skia/third_party/externals/swiftshader/docs/ |
D | Reactor.md | 33 Specialization in general is the use of a more optimal routine that is specific for a certain set o… 35 …un-time specialization can have access to the full context in which each routine executes, and alt… 39 …s, etc. Another example is a modern graphics API, which takes shaders (a routine executed per pixe… 48 …r's `Routine` class encapsulates a routine. Deleting a Routine object also frees the memory used t… 50 …routine, use the `Function<>` template. The template argument is the signature of a function, usin… 64 auto routine = function("one"); 67 Finally, we can obtain the function pointer to the entry point of the routine, and call it: 70 int (*callable)() = (int(*)())routine->getEntry(); 76 …ile the `Routine` object is retained until we no longer need to call the routine. Hence the distin… 80 …ollowing example illustrates the syntax for accessing the arguments of a routine which takes two i… [all …]
|
D | SamplingRoutines.md | 14 …l provide the specialized routine based on the image and sampler descriptor used at run-time. Then… 27 …nstruction level. Before calling out to the C++ function to retrieve the routine, we check if the … 32 …t sampler object state and image view state that is relevant to sampling routine specialization ma… 36 …se 32-bit identifiers are the only thing used as the key of the first-level sampling routine cache.
|