Home
last modified time | relevance | path

Searched refs:DrawData (Results 1 – 25 of 33) 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/skia/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/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;
184 …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.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;
74 …ter)(Primitive *primitive, const Triangle *triangle, const Polygon *polygon, const DrawData *draw);
DVertexProcessor.hpp26 struct DrawData;
122 …oid (*RoutinePointer)(Vertex *output, unsigned int *batch, VertexTask *vertexTask, DrawData *draw);
DClipper.hpp25 struct DrawData;
DPixelProcessor.hpp26 struct DrawData;
166 typedef void (*RoutinePointer)(const Primitive *primitive, int count, int thread, DrawData *draw);
/external/swiftshader/src/Shader/
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 …]
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 …]
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()
197 yMin = Max(yMin, *Pointer<Int>(data + OFFSET(DrawData,scissorY0))); in generate()
198 yMax = Min(yMax, *Pointer<Int>(data + OFFSET(DrawData,scissorY1))); in generate()
227 Int xMin = *Pointer<Int>(data + OFFSET(DrawData, scissorX0)); in generate()
228 Int xMax = *Pointer<Int>(data + OFFSET(DrawData, scissorX1)); in generate()
419 Float D = *Pointer<Float>(data + OFFSET(DrawData,depthRange)) / (x1 * y2 - x2 * y1); in generate()
441 bias *= *Pointer<Float>(data + OFFSET(DrawData,slopeDepthBias)); in generate()
451 …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.cpp49 instanceID = *Pointer<Int>(data + OFFSET(DrawData,instanceID)); in VertexProgram()
819 return data + OFFSET(DrawData, vs.c[index]); in uniformAddress()
823 return *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, vs.u[bufferIndex])) + index; in uniformAddress()
1153 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData,vs.b[boolRegister.index])) != Byte(0)); … in CALLNZb()
1328 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData,vs.b[boolRegister.index])) != Byte(0)); … in IFb()
1412 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][0])); in LOOP()
1413 aL[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][1])); in LOOP()
1414 increment[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][2])); in LOOP()
1445 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][0])); in REP()
1613 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap[TEXTURE_IMAGE_UNITS]) + offset; in TEXSIZE()
[all …]
/external/skia/include/core/
DSkMultiPictureDraw.h59 struct DrawData { struct
68 static void Reset(SkTDArray<DrawData>&); argument
71 SkTDArray<DrawData> fThreadSafeDrawData;
72 SkTDArray<DrawData> fGPUDrawData;
/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/Pipeline/
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()
156 … = RoundInt(*Pointer<Float>(data + OFFSET(DrawData,X0x16)) + v.x * rhw * *Pointer<Float>(data + OF… in generate()
157 … = RoundInt(*Pointer<Float>(data + OFFSET(DrawData,Y0x16)) + v.y * rhw * *Pointer<Float>(data + OF… in generate()
195 yMin = Max(yMin, *Pointer<Int>(data + OFFSET(DrawData,scissorY0))); in generate()
196 yMax = Min(yMax, *Pointer<Int>(data + OFFSET(DrawData,scissorY1))); in generate()
225 Int xMin = *Pointer<Int>(data + OFFSET(DrawData, scissorX0)); in generate()
226 Int xMax = *Pointer<Int>(data + OFFSET(DrawData, scissorX1)); in generate()
417 Float D = *Pointer<Float>(data + OFFSET(DrawData,depthRange)) / (x1 * y2 - x2 * y1); in generate()
439 bias *= *Pointer<Float>(data + OFFSET(DrawData,slopeDepthBias)); in generate()
449 …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()
612 o[pos].x = o[pos].x + *Pointer<Float4>(data + OFFSET(DrawData,halfPixelX)) * o[pos].w; in postTransform()
613 o[pos].y = o[pos].y + *Pointer<Float4>(data + OFFSET(DrawData,halfPixelY)) * o[pos].w; in postTransform()
696 …(RoundInt(*Pointer<Float4>(data + OFFSET(DrawData,X0x16)) + v.x * rhw * *Pointer<Float4>(data + OF… in writeCache()
697 …(RoundInt(*Pointer<Float4>(data + OFFSET(DrawData,Y0x16)) + v.y * rhw * *Pointer<Float4>(data + OF… in writeCache()
733 UInt reg = *Pointer<UInt>(data + OFFSET(DrawData, vs.reg[i])); in transformFeedback()
734 UInt row = *Pointer<UInt>(data + OFFSET(DrawData, vs.row[i])); in transformFeedback()
735 UInt col = *Pointer<UInt>(data + OFFSET(DrawData, vs.col[i])); in transformFeedback()
[all …]
DVertexProgram.cpp54 instanceID = *Pointer<Int>(data + OFFSET(DrawData,instanceID)); in VertexProgram()
743 return data + OFFSET(DrawData, vs.c[index]); in uniformAddress()
747 return *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, vs.u[bufferIndex])) + index; in uniformAddress()
1069 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData,vs.b[boolRegister.index])) != Byte(0)); … in CALLNZb()
1244 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData,vs.b[boolRegister.index])) != Byte(0)); … in IFb()
1328 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][0])); in LOOP()
1329 aL[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][1])); in LOOP()
1330 increment[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][2])); in LOOP()
1361 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData,vs.i[integerRegister.index][0])); in REP()
1529 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap[TEXTURE_IMAGE_UNITS]) + offset; in TEXSIZE()
[all …]
DPixelProgram.cpp642 …Pointer<Byte> buffer = cBuffer[index] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[inde… in rasterOperation()
691 …Pointer<Byte> buffer = cBuffer[index] + q * *Pointer<Int>(data + OFFSET(DrawData, colorSliceB[inde… in rasterOperation()
747 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap) + samplerIndex * sizeof(Texture); in sampleTexture()
973 return data + OFFSET(DrawData, ps.c[index]); in uniformAddress()
977 return *Pointer<Pointer<Byte>>(data + OFFSET(DrawData, ps.u[bufferIndex])) + index; in uniformAddress()
1259 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap) + offset; in TEXSIZE()
1417 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData, ps.b[boolRegister.index])) != Byte(0)); … in CALLNZb()
1592 …Bool condition = (*Pointer<Byte>(data + OFFSET(DrawData, ps.b[boolRegister.index])) != Byte(0)); … in IFb()
1676 iteration[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData, ps.i[integerRegister.index][0])); in LOOP()
1677 aL[loopDepth] = *Pointer<Int>(data + OFFSET(DrawData, ps.i[integerRegister.index][1])); in LOOP()
[all …]

12