Home
last modified time | relevance | path

Searched refs:vbuf (Results 1 – 25 of 77) sorted by relevance

1234

/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_vbuf.c96 static void vbuf_flush_vertices(struct vbuf_stage *vbuf);
97 static void vbuf_alloc_vertices(struct vbuf_stage *vbuf);
101 check_space(struct vbuf_stage *vbuf, unsigned nr) in check_space() argument
103 if (vbuf->nr_vertices + nr > vbuf->max_vertices || in check_space()
104 vbuf->nr_indices + nr > vbuf->max_indices) { in check_space()
105 vbuf_flush_vertices(vbuf); in check_space()
106 vbuf_alloc_vertices(vbuf); in check_space()
119 emit_vertex(struct vbuf_stage *vbuf, struct vertex_header *vertex) in emit_vertex() argument
121 if (vertex->vertex_id == UNDEFINED_VERTEX_ID && vbuf->vertex_ptr) { in emit_vertex()
128 vbuf->translate->set_buffer(vbuf->translate, 0, vertex->data[0], 0, ~0); in emit_vertex()
[all …]
/external/mesa3d/src/gallium/tests/graw/
Dfs-frontface.c78 struct pipe_vertex_buffer vbuf; in set_vertices() local
91 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
93 vbuf.stride = sizeof(struct vertex); in set_vertices()
94 vbuf.buffer_offset = 0; in set_vertices()
95 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
101 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dfs-write-z.c82 struct pipe_vertex_buffer vbuf; in set_vertices() local
95 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
97 vbuf.stride = sizeof(struct vertex); in set_vertices()
98 vbuf.buffer_offset = 0; in set_vertices()
99 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
105 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dtri-large.c45 struct pipe_vertex_buffer vbuf; in set_vertices() local
58 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
60 vbuf.stride = sizeof( struct vertex ); in set_vertices()
61 vbuf.buffer_offset = 0; in set_vertices()
62 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
68 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dfs-fragcoord.c56 struct pipe_vertex_buffer vbuf; in set_vertices() local
69 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
71 vbuf.stride = sizeof(struct vertex); in set_vertices()
72 vbuf.buffer_offset = 0; in set_vertices()
73 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
79 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dtri.c42 struct pipe_vertex_buffer vbuf; in set_vertices() local
55 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
57 vbuf.stride = sizeof( struct vertex ); in set_vertices()
58 vbuf.buffer_offset = 0; in set_vertices()
59 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
65 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dtri-instanced.c106 struct pipe_vertex_buffer vbuf[2]; in set_vertices() local
130 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
133 vbuf[0].stride = sizeof( struct vertex ); in set_vertices()
134 vbuf[0].buffer_offset = 0; in set_vertices()
135 vbuf[0].buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
142 vbuf[1].stride = sizeof( inst_data[0] ); in set_vertices()
143 vbuf[1].buffer_offset = 0; in set_vertices()
144 vbuf[1].buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
150 ctx->set_vertex_buffers(ctx, 0, 2, vbuf); in set_vertices()
Dtex-srgb.c59 struct pipe_vertex_buffer vbuf; in set_vertices() local
72 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
74 vbuf.stride = sizeof(struct vertex); in set_vertices()
75 vbuf.buffer_offset = 0; in set_vertices()
76 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
82 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dtex-swizzle.c41 struct pipe_vertex_buffer vbuf; in set_vertices() local
54 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
56 vbuf.stride = sizeof(struct vertex); in set_vertices()
57 vbuf.buffer_offset = 0; in set_vertices()
58 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
64 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dquad-tex.c43 struct pipe_vertex_buffer vbuf; in set_vertices() local
56 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
58 vbuf.stride = sizeof( struct vertex ); in set_vertices()
59 vbuf.buffer_offset = 0; in set_vertices()
60 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
66 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dtri-gs.c76 struct pipe_vertex_buffer vbuf; in set_vertices() local
89 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
91 vbuf.stride = sizeof( struct vertex ); in set_vertices()
92 vbuf.buffer_offset = 0; in set_vertices()
93 vbuf.buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
99 ctx->set_vertex_buffers(ctx, 0, 1, &vbuf); in set_vertices()
Dshader-leak.c75 struct pipe_vertex_buffer vbuf; in set_vertices() local
88 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
90 vbuf.stride = sizeof(struct vertex); in set_vertices()
91 vbuf.buffer_offset = 0; in set_vertices()
92 vbuf.buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
98 ctx->set_vertex_buffers(ctx, 0, 1, &vbuf); in set_vertices()
Docclusion-query.c82 struct pipe_vertex_buffer vbuf; in set_vertices() local
96 vbuf.stride = sizeof(struct vertex); in set_vertices()
97 vbuf.buffer_offset = 0; in set_vertices()
98 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx, in set_vertices()
104 info.ctx->set_vertex_buffers(info.ctx, 0, 1, &vbuf); in set_vertices()
Dquad-sample.c85 struct pipe_vertex_buffer vbuf; in set_vertices() local
98 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
100 vbuf.stride = sizeof( struct vertex ); in set_vertices()
101 vbuf.buffer_offset = 0; in set_vertices()
102 vbuf.buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
108 ctx->set_vertex_buffers(ctx, 0, 1, &vbuf); in set_vertices()
Dgs-test.c215 struct pipe_vertex_buffer vbuf; in set_vertices() local
232 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
234 vbuf.stride = sizeof( struct vertex ); in set_vertices()
235 vbuf.buffer_offset = 0; in set_vertices()
237 vbuf.buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
243 vbuf.buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
250 ctx->set_vertex_buffers(ctx, 0, 1, &vbuf); in set_vertices()
Dfs-test.c157 struct pipe_vertex_buffer vbuf; in set_vertices() local
172 memset(&vbuf, 0, sizeof vbuf); in set_vertices()
174 vbuf.stride = sizeof( struct vertex ); in set_vertices()
175 vbuf.buffer_offset = 0; in set_vertices()
176 vbuf.buffer.resource = pipe_buffer_create_with_data(ctx, in set_vertices()
182 ctx->set_vertex_buffers(ctx, 0, 1, &vbuf); in set_vertices()
/external/rust/crates/libz-sys/src/zlib-ng/arch/power/
Dadler32_power8.c82 vector unsigned char vbuf; in adler32_power8() local
93 vbuf = vec_xl(0, (unsigned char *) buf); in adler32_power8()
94 vsum1 = vec_sum4s(vbuf, v_zeros); /* sum(i=1 to 16) buf[i]. */ in adler32_power8()
96 vsum2 = vec_msum(vbuf, v_mul, v_zeros); in adler32_power8()
127 vbuf = vec_xl(0, (unsigned char *) buf); in adler32_power8()
129 vsum1 = vec_sum4s(vbuf, v_zeros); /* sum(i=1 to 16) buf[i]. */ in adler32_power8()
131 vsum2 = vec_msum(vbuf, v_mul, v_zeros); in adler32_power8()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_surface.c62 struct svga_winsys_buffer *vbuf = in vmw_svga_winsys_surface_init() local
65 data = vmw_svga_winsys_buffer_map(&vws->base, vbuf, pb_flags); in vmw_svga_winsys_surface_init()
70 vsrf->buf = vbuf; in vmw_svga_winsys_surface_init()
73 vmw_svga_winsys_buffer_destroy(&vws->base, vbuf); in vmw_svga_winsys_surface_init()
176 struct svga_winsys_buffer *vbuf = in vmw_svga_winsys_surface_map() local
179 data = vmw_svga_winsys_buffer_map(&vws->base, vbuf, pb_flags); in vmw_svga_winsys_surface_map()
189 vsrf->buf = vbuf; in vmw_svga_winsys_surface_map()
198 vmw_svga_winsys_buffer_destroy(&vws->base, vbuf); in vmw_svga_winsys_surface_map()
/external/libdrm/tests/amdgpu/
Dvce_tests.c53 struct amdgpu_vce_bo vbuf; member
361 luma_offset = enc->vbuf.addr; in amdgpu_cs_vce_encode_idr()
411 luma_offset = enc->vbuf.addr; in amdgpu_cs_vce_encode_p()
504 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_vce_encode()
505 resources[num_resources++] = enc.vbuf.handle; in amdgpu_cs_vce_encode()
510 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr); in amdgpu_cs_vce_encode()
513 memset(enc.vbuf.ptr, 0, vbuf_size); in amdgpu_cs_vce_encode()
515 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width); in amdgpu_cs_vce_encode()
516 enc.vbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_vce_encode()
519 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width); in amdgpu_cs_vce_encode()
[all …]
Duvd_enc_tests.c52 struct amdgpu_uvd_enc_bo vbuf; member
343 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_uvd_enc_encode()
344 resources[num_resources++] = enc.vbuf.handle; in amdgpu_cs_uvd_enc_encode()
349 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr); in amdgpu_cs_uvd_enc_encode()
352 memset(enc.vbuf.ptr, 0, vbuf_size); in amdgpu_cs_uvd_enc_encode()
354 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width); in amdgpu_cs_uvd_enc_encode()
355 enc.vbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_uvd_enc_encode()
358 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width); in amdgpu_cs_uvd_enc_encode()
359 enc.vbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_uvd_enc_encode()
362 r = amdgpu_bo_cpu_unmap(enc.vbuf.handle); in amdgpu_cs_uvd_enc_encode()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_swtnl_backend.c87 pipe_resource_reference(&svga_render->vbuf, NULL); in svga_vbuf_render_allocate_vertices()
91 if (!svga_render->vbuf) { in svga_vbuf_render_allocate_vertices()
93 svga_render->vbuf = SVGA_TRY_PTR(pipe_buffer_create in svga_vbuf_render_allocate_vertices()
97 if (!svga_render->vbuf) { in svga_vbuf_render_allocate_vertices()
100 assert(!svga_render->vbuf); in svga_vbuf_render_allocate_vertices()
101 svga_render->vbuf = pipe_buffer_create(screen, in svga_vbuf_render_allocate_vertices()
138 if (svga_render->vbuf) { in svga_vbuf_render_map_vertices()
140 svga_render->vbuf, in svga_vbuf_render_map_vertices()
253 vb.buffer.resource = svga_render->vbuf; in svga_vbuf_submit_state()
374 pipe_resource_reference(&svga_render->vbuf, NULL); in svga_vbuf_render_destroy()
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c68 struct u_vbuf *vbuf; member
302 cso->vbuf = u_vbuf_create(cso->pipe, &caps); in cso_init_vbuf()
303 cso->vbuf_current = cso->vbuf; in cso_init_vbuf()
482 if (ctx->vbuf) in cso_destroy_context()
483 u_vbuf_destroy(ctx->vbuf); in cso_destroy_context()
1094 struct u_vbuf *vbuf = ctx->vbuf_current; in cso_set_vertex_elements() local
1096 if (vbuf) { in cso_set_vertex_elements()
1097 u_vbuf_set_vertex_elements(vbuf, velems); in cso_set_vertex_elements()
1108 struct u_vbuf *vbuf = ctx->vbuf_current; in cso_save_vertex_elements() local
1110 if (vbuf) { in cso_save_vertex_elements()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_video_buffer.c140 vl_video_buffer_set_associated_data(struct pipe_video_buffer *vbuf, in vl_video_buffer_set_associated_data() argument
145 vbuf->codec = vcodec; in vl_video_buffer_set_associated_data()
147 if (vbuf->associated_data == associated_data) in vl_video_buffer_set_associated_data()
150 if (vbuf->associated_data) in vl_video_buffer_set_associated_data()
151 vbuf->destroy_associated_data(vbuf->associated_data); in vl_video_buffer_set_associated_data()
153 vbuf->associated_data = associated_data; in vl_video_buffer_set_associated_data()
154 vbuf->destroy_associated_data = destroy_associated_data; in vl_video_buffer_set_associated_data()
158 vl_video_buffer_get_associated_data(struct pipe_video_buffer *vbuf, in vl_video_buffer_get_associated_data() argument
161 if (vbuf->codec == vcodec) in vl_video_buffer_get_associated_data()
162 return vbuf->associated_data; in vl_video_buffer_get_associated_data()
/external/libwebsockets/lib/core/
Dlogs.c213 lwsl_hexdump_level(int hexdump_level, const void *vbuf, size_t len) in lwsl_hexdump_level() argument
215 unsigned char *buf = (unsigned char *)vbuf; in lwsl_hexdump_level()
226 if (!vbuf) { in lwsl_hexdump_level()
265 lwsl_hexdump(const void *vbuf, size_t len) in lwsl_hexdump() argument
268 lwsl_hexdump_level(LLL_DEBUG, vbuf, len); in lwsl_hexdump()
/external/mesa3d/src/gallium/frontends/omx/tizonia/
Dh264eprc.c232 static void enc_ScaleInput(vid_enc_PrivateType * priv, struct pipe_video_buffer **vbuf, unsigned *s… in enc_ScaleInput() argument
235 enc_ScaleInput_common(priv, def, vbuf, size); in enc_ScaleInput()
242 struct pipe_video_buffer *vbuf = task->buf; in enc_HandleTask() local
246 enc_ScaleInput(priv, &vbuf, &size); in enc_HandleTask()
262 priv->codec->begin_frame(priv->codec, vbuf, &picture.base); in enc_HandleTask()
263 priv->codec->encode_bitstream(priv->codec, vbuf, task->bitstream, &task->feedback); in enc_HandleTask()
264 priv->codec->end_frame(priv->codec, vbuf, &picture.base); in enc_HandleTask()
295 struct pipe_video_buffer *vbuf) in enc_LoadImage() argument
298 return enc_LoadImage_common(priv, def, buf, vbuf); in enc_LoadImage()
326 struct pipe_video_buffer *vbuf = in_buf->pOutputPortPrivate; in encode_frame() local
[all …]

1234