Home
last modified time | relevance | path

Searched refs:quads (Results 1 - 25 of 30) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_depth_test_tmp.h44 * NOTE: there's no guarantee that the quads are sequentially side by
45 * side. The fragment shader may have culled some quads, etc. Sliver
46 * triangles may generate non-sequential quads.
50 struct quad_header *quads[], in NAME()
54 const unsigned ix = quads[0]->input.x0; in NAME()
55 const unsigned iy = quads[0]->input.y0; in NAME()
58 const float dzdx = quads[0]->posCoef->dadx[2]; in NAME()
59 const float dzdy = quads[0]->posCoef->dady[2]; in NAME()
60 const float z0 = quads[0]->posCoef->a0[2] + dzdx * fx + dzdy * fy; in NAME()
74 tile = sp_get_cached_tile(qs->softpipe->zsbuf_cache, ix, iy, quads[ in NAME()
49 NAME(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) NAME() argument
[all...]
H A Dsp_quad_depth_test.c242 /* Copy quads stencil values in convert_quad_stencil()
686 struct quad_header *quads[], \
695 const float *aaaa = quads[i]->output.color[cbuf][3]; \
703 quads[i]->inout.mask &= passMask; \
705 if (quads[i]->inout.mask) \
706 quads[pass_nr++] = quads[i]; \
725 struct quad_header *quads[], in alpha_test_quads()
730 return alpha_test_quads_LESS( qs, quads, nr ); in alpha_test_quads()
732 return alpha_test_quads_EQUAL( qs, quads, n in alpha_test_quads()
724 alpha_test_quads(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) alpha_test_quads() argument
762 depth_bounds_test_quads(struct quad_stage *qs, struct quad_header *quads[], unsigned nr, struct depth_data *data) depth_bounds_test_quads() argument
846 depth_test_quads_fallback(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) depth_test_quads_fallback() argument
975 depth_noop(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) depth_noop() argument
985 choose_depth_test(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) choose_depth_test() argument
[all...]
H A Dsp_quad_fs.c100 * Shade/write an array of quads
105 struct quad_header *quads[], in shade_quads()
116 machine->InterpCoefs = quads[0]->coef; in shade_quads()
122 * the quads' Z coordinates are step-wise interpolated with respect in shade_quads()
125 * Z values in each pass. If interpolation starts with different quads in shade_quads()
128 if (!shade_quad(qs, quads[i]) && i > 0) in shade_quads()
132 coverage_quad( qs, quads[i] ); in shade_quads()
134 quads[nr_quads++] = quads[i]; in shade_quads()
138 qs->next->run(qs->next, quads, nr_quad in shade_quads()
104 shade_quads(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) shade_quads() argument
[all...]
H A Dsp_quad_blend.c921 struct quad_header *quads[], in blend_fallback()
938 quads[0]->input.x0, in blend_fallback()
939 quads[0]->input.y0, quads[0]->input.layer); in blend_fallback()
951 struct quad_header *quad = quads[q]; in blend_fallback()
1029 struct quad_header *quads[], in blend_single_add_src_alpha_inv_src_alpha()
1041 quads[0]->input.x0, in blend_single_add_src_alpha_inv_src_alpha()
1042 quads[0]->input.y0, quads[0]->input.layer); in blend_single_add_src_alpha_inv_src_alpha()
1045 struct quad_header *quad = quads[ in blend_single_add_src_alpha_inv_src_alpha()
920 blend_fallback(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) blend_fallback() argument
1028 blend_single_add_src_alpha_inv_src_alpha(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) blend_single_add_src_alpha_inv_src_alpha() argument
1105 blend_single_add_one_one(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) blend_single_add_one_one() argument
1174 single_output_color(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) single_output_color() argument
1210 blend_noop(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) blend_noop() argument
1218 choose_blend_quad(struct quad_stage *qs, struct quad_header *quads[], unsigned nr) choose_blend_quad() argument
[all...]
/third_party/skia/docs/examples/
H A DPath_ConvertConicToQuads.cpp14 SkPoint quads[5]; in REG_FIDDLE() local
15 SkPath::ConvertConicToQuads(conic[0], conic[1], conic[2], weight, quads, 1); in REG_FIDDLE()
21 path.moveTo(quads[0]); in REG_FIDDLE()
22 path.quadTo(quads[1], quads[2]); in REG_FIDDLE()
23 path.quadTo(quads[3], quads[4]); in REG_FIDDLE()
/third_party/skia/tests/
H A DPathOpsTestCommon.cpp137 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads) { in CubicToQuads() argument
142 quads.push_back(quad); in CubicToQuads()
162 quads.push_back(quad); in CubicToQuads()
170 SkTArray<SkDQuad, true> quads; local
183 quads.reset();
185 CubicToQuads(cubic, cubic.calcPrecision(), quads);
186 for (int index = 0; index < quads.count(); ++index) {
188 quads[index][1].asSkPoint(),
189 quads[index][2].asSkPoint()
H A DBulkRectTest.cpp61 auto quads = new GrQuadSetEntry[requestedTotNumQuads]; in fillrectop_creation_test() local
64 quads[i].fRect = SkRect::MakeWH(100.5f, 100.5f); // prevent the int non-AA optimization in fillrectop_creation_test()
65 quads[i].fColor = SK_PMColor4fWHITE; in fillrectop_creation_test()
66 quads[i].fLocalMatrix = SkMatrix::I(); in fillrectop_creation_test()
67 quads[i].fAAFlags = perQuadAA(i); in fillrectop_creation_test()
74 SkMatrix::I(), quads, requestedTotNumQuads); in fillrectop_creation_test()
93 delete[] quads; in fillrectop_creation_test()
216 // This is the simple case where there is no AA at all. We expect 2 non-AA clumps of quads. in run_test()
229 // the per-quad AA is still none, all the quads should be downgraded to non-AA. in run_test()
255 // In this case we have a run of MaxNumAAQuads non-AA quads an in run_test()
[all...]
H A DPathOpsAngleIdeas.cpp79 // construct circle from quads in orderQuads()
475 const SkDQuad* quads[] = {&quad1, &quad2}; in testQuadAngles()
484 for (unsigned index = 0; index < SK_ARRAY_COUNT(quads); ++index) { in testQuadAngles()
485 const SkDQuad& q = *quads[index]; in testQuadAngles()
529 const SkDQuad& q = *quads[sIndex]; in testQuadAngles()
560 const QuadPts quads[] = {
564 for (int index = 0; index < (int) SK_ARRAY_COUNT(quads); index += 2) {
566 quad0.debugSet(quads[index].fPts);
567 quad1.debugSet(quads[index + 1].fPts);
660 SkDQuad quads[SK_ARRAY_COUN in DEF_TEST() local
[all...]
H A DGrQuadBufferTest.cpp45 // differentiate between quads of the same type in generate_quads()
54 std::vector<GrQuad> quads; in generate_quads() local
75 quads.push_back(quad); in generate_quads()
77 return quads; in generate_quads()
87 // Odd indexed quads will be ignored and not stored in the buffer in TEST()
98 // Fill in the buffer with the device quads, and a local quad if the index is even in TEST()
119 // Confirm local quads included on even entries in TEST()
142 // Make two buffers, the first uses 'quadsA' for device quads and 'quadsB' for local quads in TEST()
143 // on even indices. The second uses 'quadsB' for device quads an in TEST()
[all...]
H A DPathOpsTestCommon.h32 void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads);
/third_party/skia/src/gpu/ops/
H A DFillRectOp.cpp89 // the two potential quads (GrQuad::bounds() is perspective-safe). in FillRectOpImpl()
130 // Then combine the colors of any additional quads (e.g. from MakeSet)
146 // If there is a constant color after analysis, that means all of the quads should be set
156 // Otherwise compute the color type needed as the max over all quads.
358 // so that quads with no aa edges can be batched with quads that have some/all edges aa'ed.
429 // Can actually add the 1 or 2 quads representing the draw in addQuad()
490 const GrQuadSetEntry quads[], in MakeOp()
497 DrawQuad quad{GrQuad::MakeFromRect(quads[0].fRect, viewMatrix), in MakeOp()
498 GrQuad::MakeFromRect(quads[ in MakeOp()
486 MakeOp(GrRecordingContext* context, GrPaint&& paint, GrAAType aaType, const SkMatrix& viewMatrix, const GrQuadSetEntry quads[], int cnt, const GrUserStencilSettings* stencilSettings, int* numConsumed) MakeOp() argument
526 AddFillRectOps(skgpu::v1::SurfaceDrawContext* sdc, const GrClip* clip, GrRecordingContext* context, GrPaint&& paint, GrAAType aaType, const SkMatrix& viewMatrix, const GrQuadSetEntry quads[], int cnt, const GrUserStencilSettings* stencilSettings) AddFillRectOps() argument
[all...]
H A DFillRectOp.h55 // Bulk API for drawing quads with a single op
63 const GrQuadSetEntry quads[],
72 // Create a FillRectOp that uses as many quads as possible from 'quads' w/o exceeding
78 const GrQuadSetEntry quads[],
H A DAAHairLinePathRenderer.cpp88 // Each line segment is rendered as two quads and two triangles.
145 // Uses the max curvature function for quads to estimate
214 // we subdivide the quads to avoid huge overfill
244 * Generates the lines and quads to be rendered. Lines are always recorded in
249 * subdivide large quads to reduce over-fill. This subdivision has to be
258 PtArray* quads, in gather_lines_and_quads()
277 // Adds a quad that has already been chopped to the list and checks for quads that are close to in gather_lines_and_quads()
303 // when in perspective keep quads in src space in gather_lines_and_quads()
305 SkPoint* pts = quads->push_back_n(3); in gather_lines_and_quads()
1040 // for quads an in predictPrograms()
252 gather_lines_and_quads(const SkPath& path, const SkMatrix& m, const SkIRect& devClipBounds, SkScalar capLength, bool convertConicsToQuads, PtArray* lines, PtArray* quads, PtArray* conics, IntArray* quadSubdivCnts, FloatArray* conicWeights) gather_lines_and_quads() argument
[all...]
H A DAAConvexPathRenderer.cpp269 SkSTArray<15, SkPoint, true> quads; in add_cubic_segments() local
270 GrPathUtils::convertCubicToQuadsConstrainToTangents(pts, SK_Scalar1, dir, &quads); in add_cubic_segments()
271 int count = quads.count(); in add_cubic_segments()
273 add_quad_segment(&quads[q], segments); in add_cubic_segments()
/third_party/skia/src/gpu/geometry/
H A DGrPathUtils.cpp319 SkTArray<SkPoint, true>* quads, in convert_noninflect_cubic_to_quads()
330 SkPoint* degQuad = quads->push_back_n(3); in convert_noninflect_cubic_to_quads()
368 SkPoint* pts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads()
377 choppedPts + 0, toleranceSqd, quads, sublevel + 1, preserveFirstTangent, false); in convert_noninflect_cubic_to_quads()
379 choppedPts + 3, toleranceSqd, quads, sublevel + 1, false, preserveLastTangent); in convert_noninflect_cubic_to_quads()
385 SkTArray<SkPoint, true>* quads, in convert_noninflect_cubic_to_quads_with_constraint()
395 SkPoint* degQuad = quads->push_back_n(3); in convert_noninflect_cubic_to_quads_with_constraint()
441 SkPoint* qpts = quads->push_back_n(6); in convert_noninflect_cubic_to_quads_with_constraint()
449 SkPoint* qpts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads_with_constraint()
496 SkPoint* pts = quads in convert_noninflect_cubic_to_quads_with_constraint()
317 convert_noninflect_cubic_to_quads(const SkPoint p[4], SkScalar toleranceSqd, SkTArray<SkPoint, true>* quads, int sublevel = 0, bool preserveFirstTangent = true, bool preserveLastTangent = true) convert_noninflect_cubic_to_quads() argument
382 convert_noninflect_cubic_to_quads_with_constraint(const SkPoint p[4], SkScalar toleranceSqd, SkPathFirstDirection dir, SkTArray<SkPoint, true>* quads, int sublevel = 0) convert_noninflect_cubic_to_quads_with_constraint() argument
512 convertCubicToQuads(const SkPoint p[4], SkScalar tolScale, SkTArray<SkPoint, true>* quads) convertCubicToQuads() argument
532 convertCubicToQuadsConstrainToTangents(const SkPoint p[4], SkScalar tolScale, SkPathFirstDirection dir, SkTArray<SkPoint, true>* quads) convertCubicToQuadsConstrainToTangents() argument
[all...]
H A DGrPathUtils.h118 // Converts a cubic into a sequence of quads. If working in device space use tolScale = 1, otherwise
119 // set based on stretchiness of the matrix. The result is sets of 3 points in quads. This will
123 SkTArray<SkPoint, true>* quads);
134 SkTArray<SkPoint, true>* quads);
H A DGrAAConvexTessellator.cpp995 const SkPoint* quads = quadder.computeQuads(pts, w, kConicTolerance);
996 SkPoint lastPoint = *(quads++);
1001 quadPts[1] = quads[0];
1002 quadPts[2] = i == count - 1 ? pts[2] : quads[1];
1005 quads += 2;
/third_party/skia/modules/pathkit/
H A Dpathkit_wasm_bindings.cpp277 SkPoint quads[5]; in ToCanvas() local
278 // approximate with 2^1=2 quads. in ToCanvas()
279 SkPath::ConvertConicToQuads(pts[0], pts[1], pts[2], iter.conicWeight(), quads, 1); in ToCanvas()
280 ctx.call<void>("quadraticCurveTo", quads[1].x(), quads[1].y(), quads[2].x(), quads[2].y()); in ToCanvas()
281 ctx.call<void>("quadraticCurveTo", quads[3].x(), quads[3].y(), quads[ in ToCanvas()
[all...]
/third_party/mesa3d/src/util/indices/
H A Du_unfilled_gen.py35 'quads',
184 def quads(intype, outtype): function
185 preamble(intype, outtype, prim='quads')
222 quads(intype, outtype)
H A Du_indices_gen.py42 'quads',
322 def quads(intype, outtype, inpv, outpv, pr): function
323 preamble(intype, outtype, inpv, outpv, pr, prim='quads')
403 quads(intype, outtype, inpv, outpv, pr)
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_mpeg12_decoder.h59 struct pipe_vertex_buffer quads; member
/third_party/skia/tools/fonts/
H A DTestSVGTypeface.cpp1055 SkTArray<SkPoint, true>* quads, in convert_noninflect_cubic_to_quads()
1065 SkPoint* degQuad = quads->push_back_n(3); in convert_noninflect_cubic_to_quads()
1095 SkPoint* pts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads()
1103 convert_noninflect_cubic_to_quads(choppedPts + 0, toleranceSqd, quads, sublevel + 1); in convert_noninflect_cubic_to_quads()
1104 convert_noninflect_cubic_to_quads(choppedPts + 3, toleranceSqd, quads, sublevel + 1); in convert_noninflect_cubic_to_quads()
1107 void convertCubicToQuads(const SkPoint p[4], SkScalar tolScale, SkTArray<SkPoint, true>* quads) { in convertCubicToQuads() argument
1118 convert_noninflect_cubic_to_quads(cubic, tolSqd, quads); in convertCubicToQuads()
1183 // Convert to quads. in writePath()
1184 SkPath quads; in writePath() local
1185 path_to_quads(path, &quads); in writePath()
1053 convert_noninflect_cubic_to_quads(const SkPoint p[4], SkScalar toleranceSqd, SkTArray<SkPoint, true>* quads, int sublevel = 0) convert_noninflect_cubic_to_quads() argument
[all...]
/third_party/skia/src/gpu/
H A DGrDistanceFieldGenFromVector.cpp381 SkSTArray<15, SkPoint, true> quads; in add_cubic() local
382 GrPathUtils::convertCubicToQuads(pts, SK_Scalar1, &quads); in add_cubic()
383 int count = quads.count(); in add_cubic()
385 add_quad(&quads[q], segments); in add_cubic()
/third_party/skia/src/utils/
H A DSkShadowTessellator.cpp826 const SkPoint* quads = quadder.computeQuads(pts, w, kConicTolerance); in handleConic() local
827 SkPoint lastPoint = *(quads++); in handleConic()
832 quadPts[1] = quads[0]; in handleConic()
833 quadPts[2] = i == count - 1 ? pts[2] : quads[1]; in handleConic()
836 quads += 2; in handleConic()
/third_party/skia/src/pdf/
H A DSkPDFUtils.cpp184 const SkPoint* quads = converter.computeQuads(args, iter.conicWeight(), tolerance); in EmitPath() local
186 append_quad(&quads[i * 2], &currentSegment); in EmitPath()

Completed in 23 milliseconds

12