Lines Matching refs:vertex

1577 		/* Emit the vertex buffer rendering commands */
1603 /* Emit the vertex buffer age */
2346 drm_radeon_vertex_t vertex;
2358 DRM_COPYFROM_WITH_RETURN(&vertex, (void *)data, sizeof (vertex));
2361 DRM_CURRENTPID, vertex.idx, vertex.count, vertex.discard);
2363 if (vertex.idx < 0 || vertex.idx >= dma->buf_count) {
2365 vertex.idx, dma->buf_count - 1);
2368 if (vertex.prim < 0 || vertex.prim > RADEON_PRIM_TYPE_3VRT_LINE_LIST) {
2369 DRM_ERROR("buffer prim %d\n", vertex.prim);
2376 buf = dma->buflist[vertex.idx];
2384 DRM_ERROR("sending pending buffer %d\n", vertex.idx);
2391 if (vertex.count) {
2392 buf->used = vertex.count; /* not used? */
2410 prim.finish = vertex.count; /* unused */
2411 prim.prim = vertex.prim;
2412 prim.numverts = vertex.count;
2418 if (vertex.discard) {
2705 drm_radeon_vertex2_t vertex;
2725 vertex.idx = vertex32.idx;
2726 vertex.discard = vertex32.discard;
2727 vertex.nr_states = vertex32.nr_states;
2728 vertex.state = (void *) (uintptr_t)vertex32.state;
2729 vertex.nr_prims = vertex32.nr_prims;
2730 vertex.prim = (void *)(uintptr_t)vertex32.prim;
2733 DRM_COPYFROM_WITH_RETURN(&vertex, (void *) data,
2734 sizeof (vertex));
2740 DRM_CURRENTPID, vertex.idx, vertex.discard);
2742 if (vertex.idx < 0 || vertex.idx >= dma->buf_count) {
2744 vertex.idx, dma->buf_count - 1);
2751 buf = dma->buflist[vertex.idx];
2760 DRM_ERROR("sending pending buffer %d\n", vertex.idx);
2767 for (laststate = 0xff, i = 0; i < vertex.nr_prims; i++) {
2771 if (DRM_COPY_FROM_USER(&prim, &vertex.prim[i], sizeof (prim)))
2778 &vertex.state[prim.stateidx], sizeof (state)))
2810 if (vertex.discard) {