Home
last modified time | relevance | path

Searched +full:triangle +full:- +full:v2 (Results 1 – 25 of 185) sorted by relevance

12345678

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_tri.c20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
39 altivec.h inclusion in -std=c++98..11 causes bool to be redefined
86 * Alloc space for a new triangle plus the input.a0/dadx/dady arrays
88 * The memory is allocated from the per-scene pool, not per-tile.
90 * \return pointer to triangle space
111 tri->inputs.stride = input_array_sz; in lp_setup_alloc_triangle()
117 assert(b - a == tri_size); in lp_setup_alloc_triangle()
129 const struct lp_setup_variant_key *key = &setup->setup.variant->key; in lp_setup_print_vertex()
135 for (int i = 0; i < key->num_inputs; i++) { in lp_setup_print_vertex()
136 const float *in = v[key->inputs[i].src_index]; in lp_setup_print_vertex()
[all …]
Dlp_setup_vbuf.c20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
73 * The draw module may have issued additional state-change commands. in lp_setup_get_vertex_info()
77 return setup->vertex_info; in lp_setup_get_vertex_info()
88 if (setup->vertex_buffer_size < size) { in lp_setup_allocate_vertices()
89 align_free(setup->vertex_buffer); in lp_setup_allocate_vertices()
90 setup->vertex_buffer = align_malloc(size, 16); in lp_setup_allocate_vertices()
91 setup->vertex_buffer_size = size; in lp_setup_allocate_vertices()
94 setup->vertex_size = vertex_size; in lp_setup_allocate_vertices()
95 setup->nr_vertices = nr_vertices; in lp_setup_allocate_vertices()
97 return setup->vertex_buffer != NULL; in lp_setup_allocate_vertices()
[all …]
Dlp_setup_analysis.c3 * Copyright 2010-2021 VMWare, Inc.
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
61 const float (*v2)[4]) in is_zero_area()
63 /* Specialized test for v0.y == v1.y == v2.y. in is_zero_area()
66 v0[0][1] == v2[0][1]); in is_zero_area()
71 * Assuming axis-aligned stretch blit (s a function of x alone, t a
74 * vx------+
77 * out-----vy
93 /* Calculate axis-aligned interpolant for s as a function of x.
101 *a = (s0 - s1) / (x0 - x1); in calc_interps()
[all …]
Dlp_setup_context.h3 * Copyright 2007-2009 VMware, Inc.
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
30 * The setup code is concerned with point/line/triangle setup and
65 * Point/line/triangle setup context.
184 void (*triangle)(struct lp_setup_context *, member
187 const float (*v2)[4]);
193 const float (*v2)[4],
205 scis_planes[0] = (bbox->x0 < scissor->x0); in scissor_planes_needed()
207 scis_planes[1] = (bbox->x1 > scissor->x1); in scissor_planes_needed()
209 scis_planes[2] = (bbox->y0 < scissor->y0); in scissor_planes_needed()
[all …]
Dlp_setup_rect.c3 * Copyright 2010-2021 VMware, Inc.
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
29 * Setup/binning code for screen-aligned quads.
43 #define UNDETERMINED_BLIT -1
56 * The memory is allocated from the per-scene pool, not per-tile.
71 rect->inputs.stride = input_array_sz; in lp_setup_alloc_rectangle()
78 * The rectangle covers the whole tile- shade whole tile.
79 * XXX no rectangle/triangle dependencies in this file - share it with
88 struct lp_scene *scene = setup->scene; in lp_setup_whole_tile()
95 * - For layered rendering we can't determine if this covers the same in lp_setup_whole_tile()
[all …]
/external/swiftshader/src/Pipeline/
DSetupRoutine.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
50 const bool triangle = state.isDrawTriangle; in generate() local
52 const int V0 = OFFSET(Triangle, v0); in generate()
53 const int V1 = (triangle || line) ? OFFSET(Triangle, v1) : OFFSET(Triangle, v0); in generate()
54 …const int V2 = triangle ? OFFSET(Triangle, v2) : (line ? OFFSET(Triangle, v1) : OFFSET(Triangle, v… in generate() local
58 Pointer<Byte> v2 = tri + V2; in generate() local
65 X[2] = *Pointer<Int>(v2 + OFFSET(Vertex, projected.x)); in generate()
69 Y[2] = *Pointer<Int>(v2 + OFFSET(Vertex, projected.y)); in generate()
74 if(triangle) in generate()
84 Float A = (y0 - y2) * x1 + (y2 - y1) * x0 + (y1 - y0) * x2; // Area in generate()
[all …]
DSetupRoutine.hpp7 // http://www.apache.org/licenses/LICENSE-2.0
36 …> &primitive, Pointer<Byte> &triangle, Float4 &w012, Float4 (&m)[3], Pointer<Byte> &v0, Pointer<By…
38 void conditionalRotate1(Bool condition, Pointer<Byte> &v0, Pointer<Byte> &v1, Pointer<Byte> &v2);
39 void conditionalRotate2(Bool condition, Pointer<Byte> &v0, Pointer<Byte> &v1, Pointer<Byte> &v2);
/external/deqp/framework/referencerenderer/
DrrRenderer.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
102 /*--------------------------------------------------------------------*//*!
104 *//*--------------------------------------------------------------------*/
110 return tcu::IVec4(pos.x(), pos.y(), endPos.x() - pos.x(), endPos.y() - pos.y()); in rectIntersection()
113 void convertPrimitiveToBaseType(std::vector<pa::Triangle> &output, std::vector<pa::Triangle> &input) in convertPrimitiveToBaseType()
134 const int baseProvokingVertexIndex = adjacentProvokingVertex - 1; in convertPrimitiveToBaseType()
135 … output[i] = pa::Line(input[i].v1, input[i].v2, baseProvokingVertexIndex); in convertPrimitiveToBaseType()
[all …]
DrrPrimitiveAssembler.hpp3 /*-------------------------------------------------------------------------
5 * -----------------------------------------------
13 * http://www.apache.org/licenses/LICENSE-2.0
24 *//*--------------------------------------------------------------------*/
34 struct Triangle struct
41 Triangle(void) : v0(nullptr), v1(nullptr), v2(nullptr), provokingIndex(-1) in Triangle() function
45 Triangle(VertexPacket *v0_, VertexPacket *v1_, VertexPacket *v2_, int provokingIndex_) in Triangle() function
48 , v2(v2_) in Triangle()
62 return v2; in getProvokingVertex()
71 VertexPacket *v2; member
[all …]
/external/swiftshader/src/Device/
DRenderer.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
67 index--; in setBatchIndices()
197 draw->id = id; in draw()
199 const vk::GraphicsState &pipelineState = pipeline->getCombinedState(dynamicState); in draw()
203 // pre-rasterization subsets, but only includes fragment and fragment output interface in draw()
220 pixelProcessor.setBlendConstant(fragmentOutputInterfaceState->getBlendConstants()); in draw()
223 const vk::Inputs &inputs = pipeline->getInputs(); in draw()
229 const sw::SpirvShader *fragmentShader = pipeline->getShader(VK_SHADER_STAGE_FRAGMENT_BIT).get(); in draw()
230 const sw::SpirvShader *vertexShader = pipeline->getShader(VK_SHADER_STAGE_VERTEX_BIT).get(); in draw()
232 const vk::Attachments attachments = pipeline->getAttachments(); in draw()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cTextureBarrierTests.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------
5 * Copyright (c) 2014-2016 The Khronos Group Inc.
11 * http://www.apache.org/licenses/LICENSE-2.0
22 */ /*-------------------------------------------------------------------*/
27 */ /*-------------------------------------------------------------------*/
244 (1) Generate an irregular grid covering the whole screen (i.e. (-1,-1) to (1,1));
246 (3) Shuffle the generated triangle list;
247 (4) Write the vertices of the shuffled triangle list to the destination address. */
259 Vertex v0, v1, v2; in generateVertexData() member
[all …]
/external/mesa3d/src/intel/vulkan/grl/gpu/
Dbvh_build_presplit.cl2 // Copyright (C) 2009-2021 Intel Corporation
4 // SPDX-License-Identifier: MIT
26 This function splits a line v0->v1 at position pos in dimension dim
53 const float f = (pos - v0d) / (v1d - v0d);
54 const float4 c = f * (v1 - v0) + v0;
62 This function splits a clipped triangle v0,v1,v2 with bounds prim at
64 right clipped triangle fragments into lbounds and rbounds.
73 const float4 v2,
77 /* clip each triangle edge */
79 splitLine(dim, pos, v1, v2, lbounds, rbounds);
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_cull.c20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
62 const unsigned pos = draw_current_shader_position_output(stage->draw); in cull_tri()
64 const float *v0 = header->v[0]->data[pos]; in cull_tri()
65 const float *v1 = header->v[1]->data[pos]; in cull_tri()
66 const float *v2 = header->v[2]->data[pos]; in cull_tri() local
68 /* edge vectors: e = v0 - v2, f = v1 - v2 */ in cull_tri()
69 const float ex = v0[0] - v2[0]; in cull_tri()
70 const float ey = v0[1] - v2[1]; in cull_tri()
71 const float fx = v1[0] - v2[0]; in cull_tri()
72 const float fy = v1[1] - v2[1]; in cull_tri()
[all …]
Ddraw_pipe.c20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
43 draw->pipeline.wide_line = draw_wide_line_stage(draw); in draw_pipeline_init()
44 draw->pipeline.wide_point = draw_wide_point_stage(draw); in draw_pipeline_init()
45 draw->pipeline.stipple = draw_stipple_stage(draw); in draw_pipeline_init()
46 draw->pipeline.unfilled = draw_unfilled_stage(draw); in draw_pipeline_init()
47 draw->pipeline.twoside = draw_twoside_stage(draw); in draw_pipeline_init()
48 draw->pipeline.offset = draw_offset_stage(draw); in draw_pipeline_init()
49 draw->pipeline.clip = draw_clip_stage(draw); in draw_pipeline_init()
50 draw->pipeline.flatshade = draw_flatshade_stage(draw); in draw_pipeline_init()
51 draw->pipeline.cull = draw_cull_stage(draw); in draw_pipeline_init()
[all …]
/external/mesa3d/src/gallium/drivers/i915/ci/
Dtraces-i915.yml2 ---
3 traces-db:
4 download-url: "https://s3.freedesktop.org/mesa-tracie-public/"
7 glxgears/glxgears-2-v2.trace:
8 i915-g33:
10 gputest/plot3d-v2.trace:
11 i915-g33:
13 gputest/triangle-v2.trace:
14 i915-g33:
18 humus/CelShading-v2.trace:
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
52 * Triangle edge info
55 float dx; /**< X(v1) - X(v0), used only during setup */
56 float dy; /**< Y(v1) - Y(v0), used only during setup */
65 * This can't be arbitrarily increased since we depend on some 32-bit
72 * Triangle setup info.
126 * Clip setup->quad against the scissor/surface bounds.
132 const struct pipe_scissor_state *cliprect = &setup->softpipe->cliprect[viewport_index]; in quad_clip()
133 const int minx = (int) cliprect->minx; in quad_clip()
134 const int maxx = (int) cliprect->maxx; in quad_clip()
[all …]
/external/deqp/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderRendering.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------
5 * Copyright (c) 2014-2016 The Khronos Group Inc.
11 * http://www.apache.org/licenses/LICENSE-2.0
22 */ /*-------------------------------------------------------------------*/
443 /* Retrieve iteration-specific input layout qualifier and draw call mode data */ in init()
666 /** Executes actual geometry shader-based rendering test, using an user-specified draw call.
689 /* Reduce n_instances to 1 for non-instanced draw call modes */ in executeTest()
703 /* Retrieve render-target size */ in executeTest()
790 GLU_EXPECT_NO_ERROR(gl.getError(), "Test set-up failed."); in executeTest()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/numerics/numeric.ops/exclusive.scan/
Dexclusive_scan.pass.cpp1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
32 assert((rLast - rFirst) <= 5); // or else increase the size of "out" in test()
59 constexpr std::size_t triangle(size_t n) { return n*(n+1)/2; } in triangle() function
78 assert(v[i] == 30 + triangle(i-1)); in basic_tests()
86 assert(v[i] == 40 + triangle(i)); in basic_tests()
/external/cronet/tot/third_party/libc++/src/test/std/numerics/numeric.ops/exclusive.scan/
Dexclusive_scan.pass.cpp1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
32 assert((rLast - rFirst) <= 5); // or else increase the size of "out" in test()
59 constexpr std::size_t triangle(size_t n) { return n*(n+1)/2; } in triangle() function
78 assert(v[i] == 30 + triangle(i-1)); in basic_tests()
86 assert(v[i] == 40 + triangle(i)); in basic_tests()
/external/cronet/tot/third_party/libc++/src/test/std/numerics/numeric.ops/inclusive.scan/
Dinclusive_scan.pass.cpp1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
32 assert((rLast - rFirst) <= 5); // or else increase the size of "out" in test()
60 constexpr std::size_t triangle(size_t n) { return n*(n+1)/2; } in triangle() function
79 assert(v[i] == triangle(i)); in basic_tests()
87 assert(v[i] == triangle(i + 1)); in basic_tests()
Dinclusive_scan_op.pass.cpp1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
34 assert((rLast - rFirst) <= 5); // or else increase the size of "out" in test()
65 constexpr std::size_t triangle(size_t n) { return n*(n+1)/2; } in triangle() function
84 assert(v[i] == triangle(i)); in basic_tests()
92 assert(v[i] == triangle(i + 1)); in basic_tests()
/external/cronet/stable/third_party/libc++/src/test/std/numerics/numeric.ops/inclusive.scan/
Dinclusive_scan.pass.cpp1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
32 assert((rLast - rFirst) <= 5); // or else increase the size of "out" in test()
60 constexpr std::size_t triangle(size_t n) { return n*(n+1)/2; } in triangle() function
79 assert(v[i] == triangle(i)); in basic_tests()
87 assert(v[i] == triangle(i + 1)); in basic_tests()
Dinclusive_scan_op.pass.cpp1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
34 assert((rLast - rFirst) <= 5); // or else increase the size of "out" in test()
65 constexpr std::size_t triangle(size_t n) { return n*(n+1)/2; } in triangle() function
84 assert(v[i] == triangle(i)); in basic_tests()
92 assert(v[i] == triangle(i + 1)); in basic_tests()
/external/mesa3d/src/gallium/drivers/virgl/ci/
Dtraces-virgl-iris.yml2 ---
3 traces-db:
4 download-url: "https://s3.freedesktop.org/mesa-tracie-public/"
7 glxgears/glxgears-2-v2.trace:
8 gl-virgl:
10 gputest/furmark-v2.trace:
11 gl-virgl:
13 gputest/triangle-v2.trace:
14 gl-virgl:
16 humus/Portals-v2.trace:
[all …]
Dtraces-virgl.yml2 ---
3 traces-db:
4 download-url: "https://s3.freedesktop.org/mesa-tracie-public/"
7 glxgears/glxgears-2-v2.trace:
8 gl-virgl:
10 gputest/furmark-v2.trace:
11 gl-virgl:
13 gputest/triangle-v2.trace:
14 gl-virgl:
16 humus/Portals-v2.trace:
[all …]

12345678