Home
last modified time | relevance | path

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

1234567

/third_party/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DSetupRoutine.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
52 const bool triangle = state.isDrawSolidTriangle || sprite; in generate() local
55 const int V0 = OFFSET(Triangle,v0); in generate()
56 const int V1 = (triangle || line) ? OFFSET(Triangle,v1) : OFFSET(Triangle,v0); in generate()
57 …const int V2 = triangle ? OFFSET(Triangle,v2) : (line ? OFFSET(Triangle,v1) : OFFSET(Triangle,v0)); in generate() local
63 Pointer<Byte> v2 = tri + V2; in generate() local
70 X[2] = *Pointer<Int>(v2 + OFFSET(Vertex,X)); in generate()
74 Y[2] = *Pointer<Int>(v2 + OFFSET(Vertex,Y)); in generate()
89 Float A = (y2 - y0) * x1 + (y1 - y2) * x0 + (y0 - y1) * x2; // Area in generate()
98 *Pointer<Int>(v2 + pos * 16 + 12); in generate()
[all …]
/third_party/openGLES/extensions/NV/
DNV_geometry_shader4.txt84 unspecified, implementation-dependent manner. This decomposition satisfies
90 3. the orientation of each triangle is consistent with the orientation
93 For such primitives, the shader is executed once for each triangle in the
98 third vertex of the triangle, respectively. ...
106 with QUADS, QUAD_STRIP, and POLYGON topologies) The built-in special
135 are two implementation-dependent limits on the value of
151 Additions to Chapter 4 of the OpenGL 2.0 Specification (Per-Fragment
236 re-linking the entire program object. One simple example might be a
251 the order V0, V1, V2, V3.
253 For QUADS primitives, the quad V0->V1->V2->V3 is decomposed into the
[all …]
DNV_geometry_program4.txt55 A geometry program begins with a single primitive - a point, line, or
56 triangle. Quads and polygons are allowed, but are decomposed into
60 either a point, a line strip, or a triangle strip. It emits vertices
72 and triangle strips with adjacency. Some of the vertices specified in
75 line segment end points (lines/strips) or the three triangle edges
81 three-dimensional, cube map, or array textures (EXT_texture_array) can be
164 Program-computed point sizes can be enabled if geometry programs are
175 1 - - - 2----->3 - - - 4 1 - - - 2--->3--->4--->5 - - - 6
177 5 - - - 6----->7 - - - 8
194 for each i = 0, 1, ... , n-1, where there are 4n+k vertices between the
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_geometry_shader4.txt84 unspecified, implementation-dependent manner. This decomposition satisfies
90 3. the orientation of each triangle is consistent with the orientation
93 For such primitives, the shader is executed once for each triangle in the
98 third vertex of the triangle, respectively. ...
106 with QUADS, QUAD_STRIP, and POLYGON topologies) The built-in special
135 are two implementation-dependent limits on the value of
151 Additions to Chapter 4 of the OpenGL 2.0 Specification (Per-Fragment
236 re-linking the entire program object. One simple example might be a
251 the order V0, V1, V2, V3.
253 For QUADS primitives, the quad V0->V1->V2->V3 is decomposed into the
[all …]
DNV_geometry_program4.txt55 A geometry program begins with a single primitive - a point, line, or
56 triangle. Quads and polygons are allowed, but are decomposed into
60 either a point, a line strip, or a triangle strip. It emits vertices
72 and triangle strips with adjacency. Some of the vertices specified in
75 line segment end points (lines/strips) or the three triangle edges
81 three-dimensional, cube map, or array textures (EXT_texture_array) can be
164 Program-computed point sizes can be enabled if geometry programs are
175 1 - - - 2----->3 - - - 4 1 - - - 2--->3--->4--->5 - - - 6
177 5 - - - 6----->7 - - - 8
194 for each i = 0, 1, ... , n-1, where there are 4n+k vertices between the
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DRenderer.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
46 extern bool symmetricNormalizedDepth; // [-1, 1] instead of [0, 1]
110 int ref = reference--; // Atomic in release()
132 references = -1; in DrawCall()
135 data->constants = &constants; in DrawCall()
212 sync->lock(EXCLUSIVE); in ~Renderer()
213 sync->destruct(); in ~Renderer()
215 sync->unlock(); in ~Renderer()
257 context->drawType = drawType; in draw()
262 int ss = context->getSuperSampleCount(); in draw()
[all …]
/third_party/vk-gl-cts/framework/referencerenderer/
DrrPrimitiveAssembler.hpp3 /*-------------------------------------------------------------------------
5 * -----------------------------------------------
13 * http://www.apache.org/licenses/LICENSE-2.0
24 *//*--------------------------------------------------------------------*/
34 struct Triangle struct
41 Triangle (void) in Triangle() argument
44 , v2 (DE_NULL) in Triangle()
45 , provokingIndex (-1) in Triangle()
49 Triangle (VertexPacket* v0_, VertexPacket* v1_, VertexPacket* v2_, int provokingIndex_) in Triangle() argument
52 , v2 (v2_) in Triangle()
[all …]
DrrRenderer.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
103 /*--------------------------------------------------------------------*//*!
105 *//*--------------------------------------------------------------------*/
111 return tcu::IVec4(pos.x(), pos.y(), endPos.x() - pos.x(), endPos.y() - pos.y()); in rectIntersection()
114 void convertPrimitiveToBaseType(std::vector<pa::Triangle>& output, std::vector<pa::Triangle>& input) in convertPrimitiveToBaseType()
135 const int baseProvokingVertexIndex = adjacentProvokingVertex-1; in convertPrimitiveToBaseType()
136 output[i] = pa::Line(input[i].v1, input[i].v2, baseProvokingVertexIndex); in convertPrimitiveToBaseType()
[all …]
/third_party/skia/third_party/externals/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->getState(dynamicState); in draw()
202 const vk::Inputs &inputs = pipeline->getInputs(); in draw()
208 const sw::SpirvShader *fragmentShader = pipeline->getShader(VK_SHADER_STAGE_FRAGMENT_BIT).get(); in draw()
209 const sw::SpirvShader *vertexShader = pipeline->getShader(VK_SHADER_STAGE_VERTEX_BIT).get(); in draw()
211 const vk::Attachments attachments = pipeline->getAttachments(); in draw()
222 draw->containsImageWrite = pipeline->containsImageWrite(); in draw()
257 DrawData *data = draw->data; in draw()
[all …]
/third_party/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 …]
/third_party/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 …]
/third_party/vk-gl-cts/external/vulkan-docs/src/images/
Dmicromap-subd.svg1 <?xml version="1.0" encoding="utf-8"?>
2 …idth="327.192" height="209.593" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">
3 …47 Z" style="fill: rgb(216, 216, 216); stroke: rgb(0, 0, 0);" bx:shape="triangle 84.25 172.547 129…
4-301.635 L 180.926 -237.952 L 116.382 -237.952 L 148.654 -301.635 Z" style="fill: rgb(216, 216, 21…
5 …<text style="white-space: pre; fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 1…
6 …<text style="white-space: pre; fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 1…
7 …<text style="white-space: pre; fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 1…
8 …<text style="white-space: pre; fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 1…
9 …<text style="white-space: pre; fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 1…
10 …<text style="white-space: pre; fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 1…
[all …]
/third_party/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 …]
/third_party/vk-gl-cts/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 */ /*-------------------------------------------------------------------*/
243 (1) Generate an irregular grid covering the whole screen (i.e. (-1,-1) to (1,1));
245 (3) Shuffle the generated triangle list;
246 (4) Write the vertices of the shuffled triangle list to the destination address. */
258 Vertex v0, v1, v2; in generateVertexData() member
[all …]
/third_party/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 …]
/third_party/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 …]
/third_party/mesa3d/src/amd/ci/
Dtraces-amd.yml2 ---
3 traces-db:
4 download-url: "http://caching-proxy/cache/?uri=https://s3.freedesktop.org/mesa-tracie-public/"
7 unigine/heaven-scene1-low-d3d11.trace-dxgi:
8 vk-radv-raven:
9 label: [no-perf, slow, skip]
11 unigine/heaven-scene1-low-d3d9.trace-dxgi:
12 vk-radv-raven:
13 label: [no-perf, skip]
15 text: "flaky, starting from around https://mesa.pages.freedesktop.org/-/mesa/-/jobs/40335547/"
[all …]
/third_party/mesa3d/src/panfrost/ci/
Dtraces-panfrost.yml2 ---
3 traces-db:
4 download-url: "http://caching-proxy/cache/?uri=https://s3.freedesktop.org/mesa-tracie-public/"
7 behdad-glyphy/glyphy-v2.trace:
8 gl-panfrost-t860:
10 glxgears/glxgears-2-v2.trace:
11 gl-panfrost-t860:
13 gl-panfrost-t760:
15 pathfinder/demo-v2.trace:
16 gl-panfrost-t860:
[all …]

1234567