Home
last modified time | relevance | path

Searched refs:DrawData (Results 1 – 25 of 30) sorted by relevance

12

/external/skqp/src/core/
DSkMultiPictureDraw.cpp14 void SkMultiPictureDraw::DrawData::draw() { in draw()
18 void SkMultiPictureDraw::DrawData::init(SkCanvas* canvas, const SkPicture* picture, in init()
34 void SkMultiPictureDraw::DrawData::Reset(SkTDArray<DrawData>& data) { in Reset()
52 DrawData::Reset(fGPUDrawData); in reset()
53 DrawData::Reset(fThreadSafeDrawData); in reset()
65 SkTDArray<DrawData>& array = canvas->getGrContext() ? fGPUDrawData : fThreadSafeDrawData; in add()
100 const DrawData& data = fGPUDrawData[i]; in draw()
/external/swiftshader/src/Pipeline/
DVertexProgram.cpp39 routine.viewID = *Pointer<Int>(data + OFFSET(DrawData, viewID)); in VertexProgram()
40 routine.instanceID = *Pointer<Int>(data + OFFSET(DrawData, instanceID)); in VertexProgram()
58 routine.descriptorSets = data + OFFSET(DrawData, descriptorSets); in VertexProgram()
59 routine.descriptorDynamicOffsets = data + OFFSET(DrawData, descriptorDynamicOffsets); in VertexProgram()
60 routine.pushConstants = data + OFFSET(DrawData, pushConstants); in VertexProgram()
61 routine.constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, constants)); in VertexProgram()
71 SIMD::Int(*Pointer<Int>(data + OFFSET(DrawData, baseVertex))); in program()
DSetupRoutine.cpp44 Pointer<Byte> constants = *Pointer<Pointer<Byte> >(data + OFFSET(DrawData, constants)); in generate()
137 … = RoundInt(*Pointer<Float>(data + OFFSET(DrawData, X0xF)) + v.x * rhw * *Pointer<Float>(data + OF… in generate()
138 … = RoundInt(*Pointer<Float>(data + OFFSET(DrawData, Y0xF)) + v.y * rhw * *Pointer<Float>(data + OF… in generate()
175 yMin = Max(yMin, *Pointer<Int>(data + OFFSET(DrawData, scissorY0))); in generate()
176 yMax = Min(yMax, *Pointer<Int>(data + OFFSET(DrawData, scissorY1))); in generate()
214 Int xMin = *Pointer<Int>(data + OFFSET(DrawData, scissorX0)); in generate()
215 Int xMax = *Pointer<Int>(data + OFFSET(DrawData, scissorX1)); in generate()
412 Float D = *Pointer<Float>(data + OFFSET(DrawData, depthRange)) / (x1 * y2 - x2 * y1); in generate()
423 …C = z0 * *Pointer<Float>(data + OFFSET(DrawData, depthRange)) + *Pointer<Float>(data + OFFSET(Draw… in generate()
444 r = *Pointer<Float>(data + OFFSET(DrawData, minimumResolvableDepthDifference)); in generate()
[all …]
DPixelRoutine.cpp356 buffer += q * *Pointer<Int>(data + OFFSET(DrawData, stencilSliceB)); in stencilTest()
359 Int pitch = *Pointer<Int>(data + OFFSET(DrawData, stencilPitchB)); in stencilTest()
366 value &= *Pointer<Byte8>(data + OFFSET(DrawData, stencil[0].testMaskQ)); in stencilTest()
373 valueBack &= *Pointer<Byte8>(data + OFFSET(DrawData, stencil[1].testMaskQ)); in stencilTest()
399 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData, stencil[isBack].referenc… in stencilTest()
402 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData, stencil[isBack].referenceMaskedQ))); in stencilTest()
405 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData, stencil[isBack].referenceMaskedQ))); in stencilTest()
410 equal = CmpEQ(equal, *Pointer<Byte8>(data + OFFSET(DrawData, stencil[isBack].referenceMaskedQ))); in stencilTest()
412 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData, stencil[isBack].referenc… in stencilTest()
416 equal = *Pointer<Byte8>(data + OFFSET(DrawData, stencil[isBack].referenceMaskedSignedQ)); in stencilTest()
[all …]
DPixelProgram.cpp98 routine.viewID = *Pointer<Int>(data + OFFSET(DrawData, viewID)); in setBuiltins()
141 routine.descriptorSets = data + OFFSET(DrawData, descriptorSets); in applyShader()
142 routine.descriptorDynamicOffsets = data + OFFSET(DrawData, descriptorDynamicOffsets); in applyShader()
143 routine.pushConstants = data + OFFSET(DrawData, pushConstants); in applyShader()
144 routine.constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, constants)); in applyShader()
299 …Pointer<Byte> buffer = cBuffer[index] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[inde… in rasterOperation()
345 …Pointer<Byte> buffer = cBuffer[index] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[inde… in rasterOperation()
DVertexRoutine.cpp49 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, constants)); in generate()
96 …Pointer<Byte> input = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, input) + sizeof(void *) * (i… in readInput()
97 UInt stride = *Pointer<UInt>(data + OFFSET(DrawData, stride) + sizeof(uint32_t) * (i / 4)); in readInput()
98 Int baseVertex = *Pointer<Int>(data + OFFSET(DrawData, baseVertex)); in readInput()
102 …robustnessSize = *Pointer<UInt>(data + OFFSET(DrawData, robustnessSize) + sizeof(uint32_t) * (i / … in readInput()
552 …tClamped(*Pointer<Float4>(data + OFFSET(DrawData, X0xF)) + pos.x * rhw * *Pointer<Float4>(data + O… in writeCache()
553 …tClamped(*Pointer<Float4>(data + OFFSET(DrawData, Y0xF)) + pos.y * rhw * *Pointer<Float4>(data + O… in writeCache()
/external/swiftshader/src/Renderer/
DQuadRasterizer.cpp50 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
76 UInt clusterOcclusion = *Pointer<UInt>(data + OFFSET(DrawData,occlusion) + 4 * cluster); in generate()
78 *Pointer<UInt>(data + OFFSET(DrawData,occlusion) + 4 * cluster) = clusterOcclusion; in generate()
86 *Pointer<Long>(data + OFFSET(DrawData,cycles[i]) + 8 * cluster) += cycles[i]; in generate()
103 … *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,colorBuffer[index])) + yMin * *Pointer<Int>(data +… in rasterize()
109 …r = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,depthBuffer)) + yMin * *Pointer<Int>(data + OFF… in rasterize()
114 … = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,stencilBuffer)) + yMin * *Pointer<Int>(data + OF… in rasterize()
174 pitch = *Pointer<Int>(data + OFFSET(DrawData,depthPitchB)); in rasterize()
300 …cBuffer[index] += *Pointer<Int>(data + OFFSET(DrawData,colorPitchB[index])) << (1 + sw::log2(clust… in rasterize()
306 …zBuffer += *Pointer<Int>(data + OFFSET(DrawData,depthPitchB)) << (1 + sw::log2(clusterCount)); /… in rasterize()
[all …]
DSetupProcessor.hpp31 struct DrawData;
86 …ter)(Primitive *primitive, const Triangle *triangle, const Polygon *polygon, const DrawData *draw);
DClipper.hpp25 struct DrawData;
DVertexProcessor.hpp25 struct DrawData;
183 …oid (*RoutinePointer)(Vertex *output, unsigned int *batch, VertexTask *vertexTask, DrawData *draw);
DPixelProcessor.hpp26 struct DrawData;
188 typedef void (*RoutinePointer)(const Primitive *primitive, int count, int thread, DrawData *draw);
/external/swiftshader/src/Device/
DQuadRasterizer.cpp37 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, constants)); in generate()
62 UInt clusterOcclusion = *Pointer<UInt>(data + OFFSET(DrawData, occlusion) + 4 * cluster); in generate()
64 *Pointer<UInt>(data + OFFSET(DrawData, occlusion) + 4 * cluster) = clusterOcclusion; in generate()
82 …*Pointer<Pointer<Byte>>(data + OFFSET(DrawData, colorBuffer[index])) + yMin * *Pointer<Int>(data +… in rasterize()
88 …r = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, depthBuffer)) + yMin * *Pointer<Int>(data + OF… in rasterize()
93 … = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, stencilBuffer)) + yMin * *Pointer<Int>(data + O… in rasterize()
215 …cBuffer[index] += *Pointer<Int>(data + OFFSET(DrawData, colorPitchB[index])) << (1 + clusterCountL… in rasterize()
221 …zBuffer += *Pointer<Int>(data + OFFSET(DrawData, depthPitchB)) << (1 + clusterCountLog2); // FIXM… in rasterize()
226 …sBuffer += *Pointer<Int>(data + OFFSET(DrawData, stencilPitchB)) << (1 + clusterCountLog2); // FI… in rasterize()
DSetupProcessor.hpp33 struct DrawData;
35 …int(Primitive *primitive, const Triangle *triangle, const Polygon *polygon, const DrawData *draw)>;
DVertexProcessor.hpp28 struct DrawData;
54 …ion = FunctionT<void(Vertex *output, unsigned int *batch, VertexTask *vertextask, DrawData *draw)>;
DPixelProcessor.hpp27 struct DrawData;
31 …ctionT<void(const Primitive *primitive, int count, int cluster, int clusterCount, DrawData *draw)>;
DRenderer.hpp62 struct DrawData struct
179 DrawData *data;
DRenderer.cpp149 data = (DrawData *)allocate(sizeof(DrawData)); in DrawCall()
257 DrawData *data = draw->data; in draw()
662 const DrawData *data = drawCall->data; in setupSolidTriangles()
846 const DrawData &data = *draw.data; in setupLine()
1143 const DrawData &data = *draw.data; in setupPoint()
/external/skqp/include/core/
DSkMultiPictureDraw.h59 struct DrawData { struct
68 static void Reset(SkTDArray<DrawData>&); argument
71 SkTDArray<DrawData> fThreadSafeDrawData;
72 SkTDArray<DrawData> fGPUDrawData;
/external/swiftshader/src/Shader/
DVertexPipeline.cpp168 …position = transformBlend(v[Position], Pointer<Byte>(data + OFFSET(DrawData,ff.transformT)), true); in pipeline()
180 …Vector4f vertexPosition = transformBlend(v[Position], Pointer<Byte>(data + OFFSET(DrawData,ff.came… in pipeline()
184 …normal = transformBlend(v[Normal], Pointer<Byte>(data + OFFSET(DrawData,ff.normalTransformT)), fal… in pipeline()
243 …Float4 globalAmbient = *Pointer<Float4>(data + OFFSET(DrawData,ff.globalAmbient)); // FIXME: Unp… in pipeline()
263 …L.x = L.y = L.z = *Pointer<Float4>(data + OFFSET(DrawData,ff.lightPosition[i])); // FIXME: Unpack in pipeline()
278 Float4 q = *Pointer<Float4>(data + OFFSET(DrawData,ff.attenuationQuadratic[i])); in pipeline()
279 Float4 l = *Pointer<Float4>(data + OFFSET(DrawData,ff.attenuationLinear[i])); in pipeline()
280 Float4 c = *Pointer<Float4>(data + OFFSET(DrawData,ff.attenuationConstant[i])); in pipeline()
287 …Float4 lightAmbient = *Pointer<Float4>(data + OFFSET(DrawData,ff.lightAmbient[i])); // FIXME: Un… in pipeline()
307 …diff.x = diff.y = diff.z = *Pointer<Float4>(data + OFFSET(DrawData,ff.materialDiffuse)); // FIXM… in pipeline()
[all …]
DPixelRoutine.cpp312 buffer += q * *Pointer<Int>(data + OFFSET(DrawData,stencilSliceB)); in stencilTest()
320 value &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[0].testMaskQ)); in stencilTest()
329 valueCCW &= *Pointer<Byte8>(data + OFFSET(DrawData,stencil[1].testMaskQ)); in stencilTest()
356 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
359 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
362 value = CmpEQ(value, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
367 equal = CmpEQ(equal, *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedQ))); in stencilTest()
369 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
373 equal = *Pointer<Byte8>(data + OFFSET(DrawData,stencil[CCW].referenceMaskedSignedQ)); in stencilTest()
380 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest()
[all …]
DSetupRoutine.cpp47 Pointer<Byte> constants = *Pointer<Pointer<Byte> >(data + OFFSET(DrawData,constants)); in generate()
158 … = RoundInt(*Pointer<Float>(data + OFFSET(DrawData,X0x16)) + v.x * rhw * *Pointer<Float>(data + OF… in generate()
159 … = RoundInt(*Pointer<Float>(data + OFFSET(DrawData,Y0x16)) + v.y * rhw * *Pointer<Float>(data + OF… in generate()
192 yMin = Max(yMin, *Pointer<Int>(data + OFFSET(DrawData,scissorY0))); in generate()
193 yMax = Min(yMax, *Pointer<Int>(data + OFFSET(DrawData,scissorY1))); in generate()
230 Int xMin = *Pointer<Int>(data + OFFSET(DrawData, scissorX0)); in generate()
231 Int xMax = *Pointer<Int>(data + OFFSET(DrawData, scissorX1)); in generate()
422 Float D = *Pointer<Float>(data + OFFSET(DrawData,depthRange)) / (x1 * y2 - x2 * y1); in generate()
444 bias *= *Pointer<Float>(data + OFFSET(DrawData,slopeDepthBias)); in generate()
454 …C = Float4(c * *Pointer<Float>(data + OFFSET(DrawData,depthRange)) + *Pointer<Float>(data + OFFSET… in generate()
[all …]
DVertexRoutine.cpp52 constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants)); in generate()
102 Pointer<Byte> input = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,input) + sizeof(void*) * i); in readInput()
103 UInt stride = *Pointer<UInt>(data + OFFSET(DrawData,stride) + sizeof(unsigned int) * i); in readInput()
620 Float4 W = *Pointer<Float4>(data + OFFSET(DrawData,Wx16)) * Float4(1.0f / 16.0f); in postTransform()
621 Float4 H = *Pointer<Float4>(data + OFFSET(DrawData,Hx16)) * Float4(1.0f / 16.0f); in postTransform()
622 Float4 L = *Pointer<Float4>(data + OFFSET(DrawData,X0x16)) * Float4(1.0f / 16.0f); in postTransform()
623 Float4 T = *Pointer<Float4>(data + OFFSET(DrawData,Y0x16)) * Float4(1.0f / 16.0f); in postTransform()
633 o[pos].x = o[pos].x + *Pointer<Float4>(data + OFFSET(DrawData,halfPixelX)) * o[pos].w; in postTransform()
634 o[pos].y = o[pos].y + *Pointer<Float4>(data + OFFSET(DrawData,halfPixelY)) * o[pos].w; in postTransform()
639 o[pos].x = o[pos].x + *Pointer<Float4>(data + OFFSET(DrawData,XXXX)) * o[pos].w; in postTransform()
[all …]
DPixelPipeline.cpp344 Pointer<Byte> buffer = cBuffer[0] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[0])); in rasterOperation()
365 Pointer<Byte> buffer = cBuffer[0] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[0])); in rasterOperation()
399 constant.x = *Pointer<Short4>(data + OFFSET(DrawData, textureStage[stage].constantColor4[0])); in blendTexture()
400 constant.y = *Pointer<Short4>(data + OFFSET(DrawData, textureStage[stage].constantColor4[1])); in blendTexture()
401 constant.z = *Pointer<Short4>(data + OFFSET(DrawData, textureStage[stage].constantColor4[2])); in blendTexture()
402 constant.w = *Pointer<Short4>(data + OFFSET(DrawData, textureStage[stage].constantColor4[3])); in blendTexture()
412 tfactor.x = *Pointer<Short4>(data + OFFSET(DrawData, factor.textureFactor4[0])); in blendTexture()
413 tfactor.y = *Pointer<Short4>(data + OFFSET(DrawData, factor.textureFactor4[1])); in blendTexture()
414 tfactor.z = *Pointer<Short4>(data + OFFSET(DrawData, factor.textureFactor4[2])); in blendTexture()
415 tfactor.w = *Pointer<Short4>(data + OFFSET(DrawData, factor.textureFactor4[3])); in blendTexture()
[all …]
DVertexProgram.cpp57 instanceID = *Pointer<Int>(data + OFFSET(DrawData,instanceID)); in VertexProgram()
830 return data + OFFSET(DrawData, vs.c[index]); in uniformAddress()
834 return *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, vs.u[bufferIndex])) + index; in uniformAddress()
1167 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData,vs.b[boolRegister.index])) != Byte(0)); … in CALLNZb()
1342 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData,vs.b[boolRegister.index])) != Byte(0)); … in IFb()
1426 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][0])); in LOOP()
1427 aL[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][1])); in LOOP()
1428 increment[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][2])); in LOOP()
1459 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][0])); in REP()
1627 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap[TEXTURE_IMAGE_UNITS]) + offset; in TEXSIZE()
[all …]
DPixelProgram.cpp681 …Pointer<Byte> buffer = cBuffer[index] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[inde… in rasterOperation()
732 …Pointer<Byte> buffer = cBuffer[index] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[inde… in rasterOperation()
788 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap) + samplerIndex * sizeof(Texture); in sampleTexture()
1030 return data + OFFSET(DrawData, ps.c[index]); in uniformAddress()
1034 return *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, ps.u[bufferIndex])) + index; in uniformAddress()
1319 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap) + offset; in TEXSIZE()
1483 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData, ps.b[boolRegister.index])) != Byte(0)); … in CALLNZb()
1658 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData, ps.b[boolRegister.index])) != Byte(0)); … in IFb()
1742 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData, ps.i[integerRegister.index][0])); in LOOP()
1743 aL[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData, ps.i[integerRegister.index][1])); in LOOP()
[all …]

12