Home
last modified time | relevance | path

Searched refs:MESH_SZ (Results 1 – 1 of 1) sorted by relevance

/third_party/mesa3d/src/gallium/tests/graw/
Dvs-test.c60 #define MESH_SZ 16 macro
61 static struct vertex vertices[MESH_SZ * MESH_SZ];
156 for (x = 0; x < MESH_SZ; x++) { in set_vertices()
157 for (y = 0; y < MESH_SZ; y++) { in set_vertices()
158 int i = y * MESH_SZ + x; in set_vertices()
159 vertices[i].position[0] = ((float)x)/MESH_SZ * 2.0 - 1.0; in set_vertices()
160 vertices[i].position[1] = ((float)y)/MESH_SZ * 2.0 - 1.0; in set_vertices()
165 vertices[i].color[1] = (float)x / (float)MESH_SZ; in set_vertices()
166 vertices[i].color[2] = (float)y / (float)MESH_SZ; in set_vertices()