Home
last modified time | relevance | path

Searched refs:nv04_resource (Results 1 – 25 of 43) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_buffer.h34 struct nv04_resource { struct
58 nouveau_buffer_release_gpu_storage(struct nv04_resource *); argument
62 struct nv04_resource *dst, unsigned dst_pos,
63 struct nv04_resource *src, unsigned src_pos, unsigned size);
67 struct nv04_resource *, unsigned domain);
70 nouveau_resource_map_offset(struct nouveau_context *, struct nv04_resource *,
83 nouveau_resource_unmap(struct nv04_resource *res) in nouveau_resource_unmap()
88 static inline struct nv04_resource *
89 nv04_resource(struct pipe_resource *resource) in nv04_resource() function
91 return (struct nv04_resource *)resource; in nv04_resource()
[all …]
Dnouveau_buffer.c41 nouveau_buffer_malloc(struct nv04_resource *buf) in nouveau_buffer_malloc()
50 struct nv04_resource *buf, unsigned domain) in nouveau_buffer_allocate()
90 nouveau_buffer_release_gpu_storage(struct nv04_resource *buf) in nouveau_buffer_release_gpu_storage()
114 struct nv04_resource *buf, unsigned domain) in nouveau_buffer_reallocate()
130 struct nv04_resource *res = nv04_resource(presource); in nouveau_buffer_destroy()
189 struct nv04_resource *buf = nv04_resource(tx->base.resource); in nouveau_transfer_read()
211 struct nv04_resource *buf = nv04_resource(tx->base.resource); in nouveau_transfer_write()
245 struct nv04_resource *buf, unsigned rw) in nouveau_buffer_sync()
270 nouveau_buffer_busy(struct nv04_resource *buf, unsigned rw) in nouveau_buffer_busy()
319 nouveau_buffer_cache(struct nouveau_context *nv, struct nv04_resource *buf) in nouveau_buffer_cache()
[all …]
Dnouveau_context.h10 struct nv04_resource;
30 struct nv04_resource *,
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_fragprog.c61 if (nv04_resource(fp->buffer)->domain != NOUVEAU_BO_VRAM) in nv30_fragprog_upload()
62 nouveau_buffer_migrate(nv, nv04_resource(fp->buffer), NOUVEAU_BO_VRAM); in nv30_fragprog_upload()
87 uint32_t *cbuf = (uint32_t *)nv04_resource(constbuf)->data; in nv30_fragprog_validate()
108 struct nv04_resource *r = nv04_resource(fp->buffer); in nv30_fragprog_validate()
Dnv30_vbo.c44 struct nv04_resource *res = nv04_resource(vb->buffer.resource); in nv30_emit_vtxattr()
96 struct nv04_resource *buf; in nv30_prevalidate_vbufs()
106 buf = nv04_resource(vb->buffer.resource); in nv30_prevalidate_vbufs()
140 struct nv04_resource *buf = nv04_resource(vb->buffer.resource); in nv30_update_user_vbufs()
175 nouveau_buffer_release_gpu_storage(nv04_resource(nv30->vtxbuf[i].buffer.resource)); in nv30_release_user_vbufs()
229 struct nv04_resource *res;
237 res = nv04_resource(vb->buffer.resource);
478 struct nv04_resource *res = nv04_resource(info->index.resource);
516 nv04_resource(info->index.resource),
Dnv30_push.c213 struct nv04_resource *res = nv04_resource(vb->buffer.resource); in nv30_push_vbo()
231 nv04_resource(info->index.resource), draw->start * info->index_size, in nv30_push_vbo()
282 nouveau_resource_unmap(nv04_resource(info->index.resource)); in nv30_push_vbo()
286 nouveau_resource_unmap(nv04_resource(nv30->vtxbuf[i].buffer.resource)); in nv30_push_vbo()
Dnv30_vertprog.c174 struct nv04_resource *res = nv04_resource(nv30->vertprog.constbuf); in nv30_vertprog_validate()
Dnv30_transfer.c111 static inline struct nv04_resource *
114 struct nv04_resource *fp = nv04_resource(nv30->blit_fp); in nv30_transfer_rect_fragprog()
136 fp = nv04_resource(nv30->blit_fp); in nv30_transfer_rect_fragprog()
147 struct nv04_resource *fp = nv30_transfer_rect_fragprog(nv30); in nv30_transfer_rect_blit()
Dnv30_resource.h31 struct nv04_resource base;
Dnv30_draw.c133 nv04_resource(r->buffer), r->offset + r->vtxptr[i], in nv30_render_draw_elements()
178 nv04_resource(r->buffer), r->offset + r->vtxptr[i], in nv30_render_draw_arrays()
415 void *map = nv04_resource(nv30->vertprog.constbuf)->data; in nv30_render_vbo()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_compute.c244 struct nv04_resource *res = in nv50_compute_validate_constbufs()
245 nv04_resource(nv50->constbuf[s][i].u.buf); in nv50_compute_validate_constbufs()
282 struct nv04_resource *res = nv04_resource(view->resource); in nv50_get_surface_dims()
317 struct nv04_resource *res = (struct nv04_resource *)view->resource; in nv50_mark_image_range_valid()
331 struct nv04_resource *res; in nv50_set_surface_info()
342 res = nv04_resource(view->resource); in nv50_set_surface_info()
388 struct nv04_resource *res = nv04_resource(buffer->buffer); in nv50_compute_validate_surfaces()
407 struct nv04_resource *res = nv04_resource(view->resource); in nv50_compute_validate_surfaces()
494 nv04_resource(res), NOUVEAU_BO_RDWR); in nv50_compute_validate_globals()
Dnv50_vbo.c313 struct nv04_resource *buf = nv04_resource(nv50->vtxbuf[i].buffer.resource); in nv50_vertex_arrays_validate()
388 struct nv04_resource *buf = nv04_resource(vb->buffer.resource); in nv50_vertex_arrays_validate()
612 struct nv04_resource *buf = nv04_resource(info->index.resource); in nv50_draw_elements()
710 struct nv04_resource *res = nv04_resource(so->pipe.buffer); in nva0_draw_stream_output()
788 BCTX_REFN(nv50->bufctx_3d, 3D_INDEX, nv04_resource(info->index.resource), RD); in nv50_draw_vbo()
Dnv50_screen.h137 nv50_resource_fence(struct nv04_resource *res, uint32_t flags) in nv50_resource_fence()
149 nv50_resource_validate(struct nv04_resource *res, uint32_t flags) in nv50_resource_validate()
Dnv50_tex.c131 if (unlikely(!nouveau_bo_memtype(nv04_resource(texture)->bo))) { in nv50_create_texture_view()
224 struct nv04_resource *res) in nv50_update_tic()
253 struct nv04_resource *res; in nv50_validate_tic()
Dnv50_winsys.h28 struct nv04_resource *res, unsigned flags) in nv50_add_bufctx_resident()
Dnv50_resource.h49 struct nv04_resource base;
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_tex.c132 if (unlikely(!nouveau_bo_memtype(nv04_resource(texture)->bo))) { in gm107_create_texture_view()
243 struct nv04_resource *res = nv04_resource(view->resource); in gm107_create_texture_view_from_image()
344 if (unlikely(!nouveau_bo_memtype(nv04_resource(texture)->bo))) { in gf100_create_texture_view()
454 struct nv04_resource *res) in nvc0_update_tic()
489 struct nv04_resource *res; in nvc0_validate_tic()
497 res = nv04_resource(tic->pipe.texture); in nvc0_validate_tic()
556 struct nv04_resource *res; in nve4_validate_tic()
563 res = nv04_resource(tic->pipe.texture); in nve4_validate_tic()
888 res->buf = nv04_resource(tic->pipe.texture); in nve4_make_texture_handle_resident()
910 struct nv04_resource *res = nv04_resource(view->resource); in nvc0_get_surface_dims()
[all …]
Dnve4_compute.c223 struct nv04_resource *res = nv04_resource(view->resource); in gm107_compute_validate_surfaces()
233 res = nv04_resource(tic->pipe.texture); in gm107_compute_validate_surfaces()
308 struct nv04_resource *res = nv04_resource(view->resource); in nve4_compute_validate_surfaces()
414 struct nv04_resource *res = in nve4_compute_validate_constbufs()
415 nv04_resource(nvc0->constbuf[s][i].u.buf); in nve4_compute_validate_constbufs()
468 struct nv04_resource *res = in nve4_compute_validate_buffers()
469 nv04_resource(nvc0->buffers[s][i].buffer); in nve4_compute_validate_buffers()
545 struct nv04_resource *res = nv04_resource(info->indirect); in nve4_compute_upload_input()
609 struct nv04_resource *res = in nve4_compute_setup_buf_cb()
610 nv04_resource(nvc0->constbuf[5][i].u.buf); in nve4_compute_setup_buf_cb()
[all …]
Dnvc0_compute.c220 struct nv04_resource *res = in nvc0_compute_validate_constbufs()
221 nv04_resource(nvc0->constbuf[s][i].u.buf); in nvc0_compute_validate_constbufs()
281 struct nv04_resource *res = in nvc0_compute_validate_buffers()
282 nv04_resource(nvc0->buffers[s][i].buffer); in nvc0_compute_validate_buffers()
312 nv04_resource(res), NOUVEAU_BO_RDWR); in nvc0_compute_validate_globals()
471 struct nv04_resource *res = nv04_resource(info->indirect); in nvc0_launch_grid()
511 struct nv04_resource *res = nv04_resource(info->indirect); in nvc0_compute_update_indirect_invocations()
Dnvc0_vbo_translate.c80 nv04_resource(vb->buffer.resource), vb->buffer_offset, NOUVEAU_BO_RD); in nvc0_vertex_configure_translate()
95 struct nv04_resource *buf = nv04_resource(info->index.resource); in nvc0_push_map_idxbuf()
110 struct nv04_resource *buf = nv04_resource(vb->buffer.resource); in nvc0_push_map_edgeflag()
505 struct nv04_resource *buf = nv04_resource(indirect->buffer); in nvc0_push_vbo_indirect()
506 struct nv04_resource *buf_count = nv04_resource(indirect->indirect_draw_count); in nvc0_push_vbo_indirect()
680 nouveau_resource_unmap(nv04_resource(info->index.resource)); in nvc0_push_vbo()
682 nouveau_resource_unmap(nv04_resource(nvc0->vtxbuf[i].buffer.resource)); in nvc0_push_vbo()
Dnvc0_vbo.c326 struct nv04_resource *res; in nvc0_validate_vertex_buffers()
348 res = nv04_resource(vb->buffer.resource); in nvc0_validate_vertex_buffers()
391 struct nv04_resource *buf; in nvc0_validate_vertex_buffers_shared()
406 buf = nv04_resource(vb->buffer.resource); in nvc0_validate_vertex_buffers_shared()
775 struct nv04_resource *res = nv04_resource(so->pipe.buffer); in nvc0_draw_stream_output()
812 struct nv04_resource *buf = nv04_resource(indirect->buffer); in nvc0_draw_indirect()
813 struct nv04_resource *buf_count = nv04_resource(indirect->indirect_draw_count); in nvc0_draw_indirect()
987 struct nv04_resource *buf = nv04_resource(info->index.resource); in nvc0_draw_vbo()
Dnvc0_screen.h161 nvc0_resource_fence(struct nv04_resource *res, uint32_t flags) in nvc0_resource_fence()
173 nvc0_resource_validate(struct nv04_resource *res, uint32_t flags) in nvc0_resource_validate()
Dnvc0_surface.c218 nv04_resource(dst), dstx, in nvc0_resource_copy_region()
219 nv04_resource(src), src_box->x, src_box->width); in nvc0_resource_copy_region()
232 nv04_resource(dst)->status |= NOUVEAU_BUFFER_STATUS_GPU_WRITING; in nvc0_resource_copy_region()
267 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); in nvc0_resource_copy_region()
268 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(dst), WR); in nvc0_resource_copy_region()
296 struct nv04_resource *res = nv04_resource(sf->base.texture); in nvc0_clear_render_target()
377 struct nv04_resource *buf = nv04_resource(res); in nvc0_clear_buffer_push_nvc0()
426 struct nv04_resource *buf = nv04_resource(res); in nvc0_clear_buffer_push_nve4()
500 struct nv04_resource *buf = nv04_resource(res); in nvc0_clear_buffer()
Dnvc0_context.h171 struct nv04_resource *buf;
380 struct nv04_resource *);
Dnvc0_state_validate.c212 struct nv04_resource *res; in nvc0_validate_fb()
221 res = nv04_resource(sf->base.texture); in nvc0_validate_fb()
604 struct nv04_resource *res = in nvc0_constbufs_validate()
605 nv04_resource(nvc0->constbuf[s][i].u.buf); in nvc0_constbufs_validate()
649 struct nv04_resource *res = in nvc0_validate_buffers()
650 nv04_resource(nvc0->buffers[s][i].buffer); in nvc0_validate_buffers()

12