/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_vbuf.c | 96 static void vbuf_flush_vertices( struct vbuf_stage *vbuf ); 97 static void vbuf_alloc_vertices( struct vbuf_stage *vbuf ); 109 check_space( struct vbuf_stage *vbuf, unsigned nr ) in check_space() argument 111 if (vbuf->nr_vertices + nr > vbuf->max_vertices || in check_space() 112 vbuf->nr_indices + nr > vbuf->max_indices) in check_space() 114 vbuf_flush_vertices( vbuf ); in check_space() 115 vbuf_alloc_vertices( vbuf ); in check_space() 130 emit_vertex( struct vbuf_stage *vbuf, in emit_vertex() argument 133 if (vertex->vertex_id == UNDEFINED_VERTEX_ID && vbuf->vertex_ptr) { in emit_vertex() 140 vbuf->translate->set_buffer(vbuf->translate, 0, vertex->data[0], 0, ~0); in emit_vertex() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_draw_quad.c | 44 struct pipe_resource *vbuf, in util_draw_vertex_buffer() argument 56 vbuffer.buffer = vbuf; in util_draw_vertex_buffer() 104 struct pipe_resource *vbuf = NULL; in util_draw_texquad() local 142 vbuf = pipe_buffer_create(pipe->screen, PIPE_BIND_VERTEX_BUFFER, in util_draw_texquad() 144 if (!vbuf) in util_draw_texquad() 146 pipe_buffer_write(pipe, vbuf, 0, vertexBytes, v); in util_draw_texquad() 148 util_draw_vertex_buffer(pipe, cso, vbuf, 0, PIPE_PRIM_TRIANGLE_FAN, 4, 2); in util_draw_texquad() 151 if (vbuf) in util_draw_texquad() 152 pipe_resource_reference(&vbuf, NULL); in util_draw_texquad()
|
D | u_blit.c | 76 struct pipe_resource *vbuf; /**< quad vertices */ member 140 ctx->vbuf = NULL; in util_create_blit() 192 pipe_resource_reference(&ctx->vbuf, NULL); in util_destroy_blit() 306 pipe_resource_reference(&ctx->vbuf, NULL); in get_next_slot() 310 if (!ctx->vbuf) { in get_next_slot() 311 ctx->vbuf = pipe_buffer_create(ctx->pipe->screen, in get_next_slot() 361 if (ctx->vbuf) { in setup_vertex_data_tex() 362 pipe_buffer_write_nooverlap(ctx->pipe, ctx->vbuf, in setup_vertex_data_tex() 778 if (ctx->vbuf) { in util_blit_pixels() 779 util_draw_vertex_buffer(ctx->pipe, ctx->cso, ctx->vbuf, offset, in util_blit_pixels() [all …]
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 82 struct u_vbuf *vbuf; member 249 cso->vbuf = u_vbuf_create(cso->pipe, &caps); in cso_init_vbuf() 352 if (ctx->vbuf) in cso_destroy_context() 353 u_vbuf_destroy(ctx->vbuf); in cso_destroy_context() 820 struct u_vbuf *vbuf = ctx->vbuf; in cso_set_vertex_elements() local 826 if (vbuf) { in cso_set_vertex_elements() 827 u_vbuf_set_vertex_elements(vbuf, count, states); in cso_set_vertex_elements() 877 struct u_vbuf *vbuf = ctx->vbuf; in cso_save_vertex_elements() local 879 if (vbuf) { in cso_save_vertex_elements() 880 u_vbuf_save_vertex_elements(vbuf); in cso_save_vertex_elements() [all …]
|
/external/mesa3d/src/gallium/tests/graw/ |
D | fs-write-z.c | 80 struct pipe_vertex_buffer vbuf; in set_vertices() local 94 vbuf.stride = sizeof(struct vertex); in set_vertices() 95 vbuf.buffer_offset = 0; in set_vertices() 96 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 102 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | fs-frontface.c | 76 struct pipe_vertex_buffer vbuf; in set_vertices() local 90 vbuf.stride = sizeof(struct vertex); in set_vertices() 91 vbuf.buffer_offset = 0; in set_vertices() 92 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 98 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | fs-fragcoord.c | 54 struct pipe_vertex_buffer vbuf; in set_vertices() local 68 vbuf.stride = sizeof(struct vertex); in set_vertices() 69 vbuf.buffer_offset = 0; in set_vertices() 70 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 76 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | tri-instanced.c | 108 struct pipe_vertex_buffer vbuf[2]; in set_vertices() local 135 vbuf[0].stride = sizeof( struct vertex ); in set_vertices() 136 vbuf[0].buffer_offset = 0; in set_vertices() 137 vbuf[0].buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 144 vbuf[1].stride = sizeof( inst_data[0] ); in set_vertices() 145 vbuf[1].buffer_offset = 0; in set_vertices() 146 vbuf[1].buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 152 ctx->set_vertex_buffers(ctx, 2, vbuf); in set_vertices()
|
D | tri.c | 42 struct pipe_vertex_buffer vbuf; in set_vertices() local 56 vbuf.stride = sizeof( struct vertex ); in set_vertices() 57 vbuf.buffer_offset = 0; in set_vertices() 58 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 64 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | occlusion-query.c | 81 struct pipe_vertex_buffer vbuf; in set_vertices() local 95 vbuf.stride = sizeof(struct vertex); in set_vertices() 96 vbuf.buffer_offset = 0; in set_vertices() 97 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 103 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | tex-swizzle.c | 41 struct pipe_vertex_buffer vbuf; in set_vertices() local 55 vbuf.stride = sizeof(struct vertex); in set_vertices() 56 vbuf.buffer_offset = 0; in set_vertices() 57 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 63 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | tex-srgb.c | 59 struct pipe_vertex_buffer vbuf; in set_vertices() local 73 vbuf.stride = sizeof(struct vertex); in set_vertices() 74 vbuf.buffer_offset = 0; in set_vertices() 75 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 81 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | quad-tex.c | 43 struct pipe_vertex_buffer vbuf; in set_vertices() local 57 vbuf.stride = sizeof( struct vertex ); in set_vertices() 58 vbuf.buffer_offset = 0; in set_vertices() 59 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, in set_vertices() 65 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); in set_vertices()
|
D | tri-gs.c | 78 struct pipe_vertex_buffer vbuf; in set_vertices() local 92 vbuf.stride = sizeof( struct vertex ); in set_vertices() 93 vbuf.buffer_offset = 0; in set_vertices() 94 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 100 ctx->set_vertex_buffers(ctx, 1, &vbuf); in set_vertices()
|
D | shader-leak.c | 77 struct pipe_vertex_buffer vbuf; in set_vertices() local 91 vbuf.stride = sizeof(struct vertex); in set_vertices() 92 vbuf.buffer_offset = 0; in set_vertices() 93 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 99 ctx->set_vertex_buffers(ctx, 1, &vbuf); in set_vertices()
|
D | quad-sample.c | 87 struct pipe_vertex_buffer vbuf; in set_vertices() local 101 vbuf.stride = sizeof( struct vertex ); in set_vertices() 102 vbuf.buffer_offset = 0; in set_vertices() 103 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 109 ctx->set_vertex_buffers(ctx, 1, &vbuf); in set_vertices()
|
D | gs-test.c | 234 struct pipe_vertex_buffer vbuf; in set_vertices() local 251 vbuf.stride = sizeof( struct vertex ); in set_vertices() 252 vbuf.buffer_offset = 0; in set_vertices() 254 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 260 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 267 ctx->set_vertex_buffers(ctx, 1, &vbuf); in set_vertices()
|
D | fs-test.c | 201 struct pipe_vertex_buffer vbuf; in set_vertices() local 217 vbuf.stride = sizeof( struct vertex ); in set_vertices() 218 vbuf.buffer_offset = 0; in set_vertices() 219 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 225 ctx->set_vertex_buffers(ctx, 1, &vbuf); in set_vertices()
|
D | vs-test.c | 145 struct pipe_vertex_buffer vbuf; in set_vertices() local 173 vbuf.stride = sizeof( struct vertex ); in set_vertices() 174 vbuf.buffer_offset = 0; in set_vertices() 175 vbuf.buffer = pipe_buffer_create_with_data(ctx, in set_vertices() 181 ctx->set_vertex_buffers(ctx, 1, &vbuf); in set_vertices()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_swtnl_backend.c | 82 pipe_resource_reference(&svga_render->vbuf, NULL); in svga_vbuf_render_allocate_vertices() 86 if (!svga_render->vbuf) { in svga_vbuf_render_allocate_vertices() 88 svga_render->vbuf = pipe_buffer_create(screen, in svga_vbuf_render_allocate_vertices() 92 if(!svga_render->vbuf) { in svga_vbuf_render_allocate_vertices() 94 assert(!svga_render->vbuf); in svga_vbuf_render_allocate_vertices() 95 svga_render->vbuf = pipe_buffer_create(screen, in svga_vbuf_render_allocate_vertices() 124 if (svga_render->vbuf) { in svga_vbuf_render_map_vertices() 126 svga_render->vbuf, in svga_vbuf_render_map_vertices() 204 svga_render->vbuf ); in svga_vbuf_submit_state() 331 pipe_resource_reference(&svga_render->vbuf, NULL); in svga_vbuf_render_destroy()
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_video_buffer.c | 188 vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, in vl_video_buffer_set_associated_data() argument 193 vbuf->decoder = vdec; in vl_video_buffer_set_associated_data() 195 if (vbuf->associated_data == associated_data) in vl_video_buffer_set_associated_data() 198 if (vbuf->associated_data) in vl_video_buffer_set_associated_data() 199 vbuf->destroy_associated_data(vbuf->associated_data); in vl_video_buffer_set_associated_data() 201 vbuf->associated_data = associated_data; in vl_video_buffer_set_associated_data() 202 vbuf->destroy_associated_data = destroy_associated_data; in vl_video_buffer_set_associated_data() 206 vl_video_buffer_get_associated_data(struct pipe_video_buffer *vbuf, in vl_video_buffer_get_associated_data() argument 209 if (vbuf->decoder == vdec) in vl_video_buffer_get_associated_data() 210 return vbuf->associated_data; in vl_video_buffer_get_associated_data()
|
D | vl_video_buffer.h | 82 vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, 91 vl_video_buffer_get_associated_data(struct pipe_video_buffer *vbuf,
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_drawtex.c | 144 vbuf[k + 0] = X; \ in st_DrawTex() 145 vbuf[k + 1] = Y; \ in st_DrawTex() 146 vbuf[k + 2] = Z; \ in st_DrawTex() 147 vbuf[k + 3] = W; \ in st_DrawTex() 151 GLfloat *vbuf = NULL; in st_DrawTex() local 156 &offset, &vbuffer, (void **) &vbuf) != PIPE_OK) { in st_DrawTex()
|
/external/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 80 struct pipe_resource *vbuf; member 124 p->vbuf = pipe_buffer_create(p->screen, PIPE_BIND_VERTEX_BUFFER, in init_prog() 126 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(vertices), vertices); in init_prog() 233 pipe_resource_reference(&p->vbuf, NULL); in close_prog() 265 p->vbuf, 0, in draw()
|
D | quad-tex.c | 83 struct pipe_resource *vbuf; member 133 p->vbuf = pipe_buffer_create(p->screen, PIPE_BIND_VERTEX_BUFFER, in init_prog() 135 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(vertices), vertices); in init_prog() 297 pipe_resource_reference(&p->vbuf, NULL); in close_prog() 336 p->vbuf, 0, in draw()
|