Home
last modified time | relevance | path

Searched refs:pb_buffer (Results 1 – 25 of 66) sorted by relevance

123

/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_buffer.h111 struct pb_buffer struct
150 void (*destroy)(void *winsys, struct pb_buffer *buf); argument
156 void *(*map)(struct pb_buffer *buf,
159 void (*unmap)(struct pb_buffer *buf);
161 enum pipe_error (*validate)(struct pb_buffer *buf,
165 void (*fence)(struct pb_buffer *buf,
179 void (*get_base_buffer)(struct pb_buffer *buf,
180 struct pb_buffer **base_buf,
189 pb_map(struct pb_buffer *buf, enum pb_usage_flags flags, void *flush_ctx) in pb_map()
200 pb_unmap(struct pb_buffer *buf) in pb_unmap()
[all …]
Dpb_bufmgr_cache.c53 struct pb_buffer base;
54 struct pb_buffer *buffer;
69 pb_cache_buffer(struct pb_buffer *buf) in pb_cache_buffer()
85 pb_cache_manager_remove_buffer(struct pb_buffer *pb_buf) in pb_cache_manager_remove_buffer()
97 _pb_cache_buffer_destroy(void *winsys, struct pb_buffer *pb_buf) in _pb_cache_buffer_destroy()
108 pb_cache_buffer_destroy(void *winsys, struct pb_buffer *_buf) in pb_cache_buffer_destroy()
124 pb_cache_buffer_map(struct pb_buffer *_buf, in pb_cache_buffer_map()
133 pb_cache_buffer_unmap(struct pb_buffer *_buf) in pb_cache_buffer_unmap()
141 pb_cache_buffer_validate(struct pb_buffer *_buf, in pb_cache_buffer_validate()
151 pb_cache_buffer_fence(struct pb_buffer *_buf, in pb_cache_buffer_fence()
[all …]
Dpb_cache.h43 struct pb_buffer *buffer; /**< Pointer to the structure this is part of. */
66 void (*destroy_buffer)(void *winsys, struct pb_buffer *buf);
67 bool (*can_reclaim)(void *winsys, struct pb_buffer *buf);
71 struct pb_buffer *pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
76 struct pb_buffer *buf, unsigned bucket_index);
81 void (*destroy_buffer)(void *winsys, struct pb_buffer *buf),
82 bool (*can_reclaim)(void *winsys, struct pb_buffer *buf));
Dpb_bufmgr_mm.c63 struct pb_buffer *buffer;
78 struct pb_buffer base;
87 mm_buffer(struct pb_buffer *buf) in mm_buffer()
95 mm_buffer_destroy(void *winsys, struct pb_buffer *buf) in mm_buffer_destroy()
110 mm_buffer_map(struct pb_buffer *buf, in mm_buffer_map()
124 mm_buffer_unmap(struct pb_buffer *buf) in mm_buffer_unmap()
131 mm_buffer_validate(struct pb_buffer *buf, in mm_buffer_validate()
142 mm_buffer_fence(struct pb_buffer *buf, in mm_buffer_fence()
152 mm_buffer_get_base_buffer(struct pb_buffer *buf, in mm_buffer_get_base_buffer()
153 struct pb_buffer **base_buf, in mm_buffer_get_base_buffer()
[all …]
Dpb_bufmgr.h70 struct pb_buffer *
86 struct pb_buffer *buf );
106 mm_bufmgr_create_from_buffer(struct pb_buffer *buffer,
147 pb_cache_manager_remove_buffer(struct pb_buffer *buf);
Dpb_bufmgr_debug.c70 struct pb_buffer base;
72 struct pb_buffer *buffer;
103 pb_debug_buffer(struct pb_buffer *buf) in pb_debug_buffer()
229 pb_debug_buffer_destroy(void *winsys, struct pb_buffer *_buf) in pb_debug_buffer_destroy()
250 pb_debug_buffer_map(struct pb_buffer *_buf, in pb_debug_buffer_map()
272 pb_debug_buffer_unmap(struct pb_buffer *_buf) in pb_debug_buffer_unmap()
289 pb_debug_buffer_get_base_buffer(struct pb_buffer *_buf, in pb_debug_buffer_get_base_buffer()
290 struct pb_buffer **base_buf, in pb_debug_buffer_get_base_buffer()
300 pb_debug_buffer_validate(struct pb_buffer *_buf, in pb_debug_buffer_validate()
323 pb_debug_buffer_fence(struct pb_buffer *_buf, in pb_debug_buffer_fence()
[all …]
Dpb_cache.c41 struct pb_buffer *buf = entry->buffer; in destroy_buffer_locked()
87 struct pb_buffer *buf = entry->buffer; in pb_cache_add_buffer()
123 struct pb_buffer *buf = entry->buffer; in pb_cache_is_buffer_compat()
146 struct pb_buffer *
208 struct pb_buffer *buf = entry->buffer; in pb_cache_reclaim_buffer()
251 struct pb_buffer *buf, unsigned bucket_index) in pb_cache_init_entry()
284 void (*destroy_buffer)(void *winsys, struct pb_buffer *buf), in pb_cache_init()
285 bool (*can_reclaim)(void *winsys, struct pb_buffer *buf)) in pb_cache_init()
Dpb_bufmgr_slab.c60 struct pb_buffer base;
87 struct pb_buffer *bo;
162 pb_slab_buffer(struct pb_buffer *buf) in pb_slab_buffer()
190 pb_slab_buffer_destroy(void *winsys, struct pb_buffer *_buf) in pb_slab_buffer_destroy()
225 pb_slab_buffer_map(struct pb_buffer *_buf, in pb_slab_buffer_map()
239 pb_slab_buffer_unmap(struct pb_buffer *_buf) in pb_slab_buffer_unmap()
248 pb_slab_buffer_validate(struct pb_buffer *_buf, in pb_slab_buffer_validate()
258 pb_slab_buffer_fence(struct pb_buffer *_buf, in pb_slab_buffer_fence()
267 pb_slab_buffer_get_base_buffer(struct pb_buffer *_buf, in pb_slab_buffer_get_base_buffer()
268 struct pb_buffer **base_buf, in pb_slab_buffer_get_base_buffer()
[all …]
Dpb_validate.h47 struct pb_buffer;
62 struct pb_buffer *buf,
69 enum pipe_error (*callback)(struct pb_buffer *buf, void *data),
Dpb_buffer_fenced.c116 struct pb_buffer base;
128 struct pb_buffer *buffer;
162 fenced_buffer(struct pb_buffer *buf) in fenced_buffer()
648 fenced_buffer_destroy(void *winsys, struct pb_buffer *buf) in fenced_buffer_destroy()
664 fenced_buffer_map(struct pb_buffer *buf, in fenced_buffer_map()
719 fenced_buffer_unmap(struct pb_buffer *buf) in fenced_buffer_unmap()
740 fenced_buffer_validate(struct pb_buffer *buf, in fenced_buffer_validate()
812 fenced_buffer_fence(struct pb_buffer *buf, in fenced_buffer_fence()
849 fenced_buffer_get_base_buffer(struct pb_buffer *buf, in fenced_buffer_get_base_buffer()
850 struct pb_buffer **base_buf, in fenced_buffer_get_base_buffer()
[all …]
Dpb_validate.c51 struct pb_buffer *buf;
66 struct pb_buffer *buf, in pb_validate_add_buffer()
129 enum pipe_error (*callback)(struct pb_buffer *buf, void *data), in pb_validate_foreach()
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_buffer.c59 struct pb_buffer base;
74 vmw_gmr_buffer(struct pb_buffer *buf) in vmw_gmr_buffer()
104 vmw_gmr_buffer_destroy(void *winsys, struct pb_buffer *_buf) in vmw_gmr_buffer_destroy()
121 vmw_gmr_buffer_map(struct pb_buffer *_buf, in vmw_gmr_buffer_map()
150 vmw_gmr_buffer_unmap(struct pb_buffer *_buf) in vmw_gmr_buffer_unmap()
171 vmw_gmr_buffer_get_base_buffer(struct pb_buffer *buf, in vmw_gmr_buffer_get_base_buffer()
172 struct pb_buffer **base_buf, in vmw_gmr_buffer_get_base_buffer()
181 vmw_gmr_buffer_validate( struct pb_buffer *_buf, in vmw_gmr_buffer_validate()
191 vmw_gmr_buffer_fence( struct pb_buffer *_buf, in vmw_gmr_buffer_fence()
209 static struct pb_buffer *
[all …]
Dvmw_buffer.h41 struct pb_buffer;
55 struct pb_buffer *
58 vmw_svga_winsys_buffer_wrap(struct pb_buffer *buffer);
63 static inline struct pb_buffer *
67 return (struct pb_buffer *)buffer; in vmw_pb_buffer()
72 vmw_svga_winsys_buffer_wrap(struct pb_buffer *buffer) in vmw_svga_winsys_buffer_wrap()
94 vmw_gmr_bufmgr_region_ptr(struct pb_buffer *buf,
Dpb_buffer_simple_fenced.c101 struct pb_buffer base;
113 struct pb_buffer *buffer;
140 fenced_buffer(struct pb_buffer *buf) in fenced_buffer()
504 fenced_buffer_destroy(void *winsys, struct pb_buffer *buf) in fenced_buffer_destroy()
520 fenced_buffer_map(struct pb_buffer *buf, in fenced_buffer_map()
574 fenced_buffer_unmap(struct pb_buffer *buf) in fenced_buffer_unmap()
595 fenced_buffer_validate(struct pb_buffer *buf, in fenced_buffer_validate()
645 fenced_buffer_fence(struct pb_buffer *buf, in fenced_buffer_fence()
684 fenced_buffer_get_base_buffer(struct pb_buffer *buf, in fenced_buffer_get_base_buffer()
685 struct pb_buffer **base_buf, in fenced_buffer_get_base_buffer()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeon/
Dradeon_winsys.h321 struct pb_buffer *(*buffer_create)(struct radeon_winsys *ws, uint64_t size, unsigned alignment,
336 void *(*buffer_map)(struct radeon_winsys *ws, struct pb_buffer *buf,
344 void (*buffer_unmap)(struct radeon_winsys *ws, struct pb_buffer *buf);
354 bool (*buffer_wait)(struct radeon_winsys *ws, struct pb_buffer *buf,
364 void (*buffer_get_metadata)(struct radeon_winsys *ws, struct pb_buffer *buf,
374 void (*buffer_set_metadata)(struct radeon_winsys *ws, struct pb_buffer *buf,
385 struct pb_buffer *(*buffer_from_handle)(struct radeon_winsys *ws, struct winsys_handle *whandle,
396 struct pb_buffer *(*buffer_from_ptr)(struct radeon_winsys *ws, void *pointer, uint64_t size);
404 bool (*buffer_is_user_ptr)(struct pb_buffer *buf);
407 bool (*buffer_is_suballocated)(struct pb_buffer *buf);
[all …]
Dradeon_vcn_dec_jpeg.c38 static struct pb_buffer *radeon_jpeg_get_decode_param(struct radeon_decoder *dec, in radeon_jpeg_get_decode_param()
65 static void send_cmd_bitstream(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_bitstream()
108 static void send_cmd_target(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_target()
187 static void send_cmd_bitstream_direct(struct radeon_decoder *dec, struct pb_buffer *buf, in send_cmd_bitstream_direct()
227 static void send_cmd_target_direct(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_target_direct()
284 struct pb_buffer *dt; in send_cmd_jpeg()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.h59 struct pb_buffer base;
120 bool amdgpu_bo_can_reclaim(struct amdgpu_winsys *ws, struct pb_buffer *_buf);
121 struct pb_buffer *amdgpu_bo_create(struct amdgpu_winsys *ws,
126 void amdgpu_bo_destroy(struct amdgpu_winsys *ws, struct pb_buffer *_buf);
128 struct pb_buffer *buf,
131 void amdgpu_bo_unmap(struct radeon_winsys *rws, struct pb_buffer *buf);
144 struct amdgpu_winsys_bo *amdgpu_winsys_bo(struct pb_buffer *bo) in amdgpu_winsys_bo()
161 (struct pb_buffer**)dst, (struct pb_buffer*)src); in amdgpu_winsys_bo_reference()
Damdgpu_bo.c51 struct pb_buffer *_buf, uint64_t timeout, in amdgpu_bo_wait()
145 struct pb_buffer *buf) in amdgpu_bo_get_initial_domain()
151 struct pb_buffer *buf) in amdgpu_bo_get_flags()
166 void amdgpu_bo_destroy(struct amdgpu_winsys *ws, struct pb_buffer *_buf) in amdgpu_bo_destroy()
227 static void amdgpu_bo_destroy_or_cache(struct radeon_winsys *rws, struct pb_buffer *_buf) in amdgpu_bo_destroy_or_cache()
277 struct pb_buffer *buf, in amdgpu_bo_map()
307 if (!amdgpu_bo_wait(rws, (struct pb_buffer*)bo, 0, in amdgpu_bo_map()
318 if (!amdgpu_bo_wait(rws, (struct pb_buffer*)bo, 0, in amdgpu_bo_map()
346 amdgpu_bo_wait(rws, (struct pb_buffer*)bo, PIPE_TIMEOUT_INFINITE, in amdgpu_bo_map()
361 amdgpu_bo_wait(rws, (struct pb_buffer*)bo, PIPE_TIMEOUT_INFINITE, in amdgpu_bo_map()
[all …]
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.h36 struct pb_buffer base;
79 void radeon_bo_destroy(void *winsys, struct pb_buffer *_buf);
80 bool radeon_bo_can_reclaim(void *winsys, struct pb_buffer *_buf);
92 pb_reference((struct pb_buffer**)dst, (struct pb_buffer*)src); in radeon_ws_bo_reference()
Dradeon_drm_bo.c45 static struct pb_buffer *
52 static inline struct radeon_bo *radeon_bo(struct pb_buffer *bo) in radeon_bo()
133 struct pb_buffer *_buf, uint64_t timeout, in radeon_bo_wait()
178 struct pb_buffer *buf) in radeon_bo_get_initial_domain()
354 void radeon_bo_destroy(void *winsys, struct pb_buffer *_buf) in radeon_bo_destroy()
423 static void radeon_bo_destroy_or_cache(void *winsys, struct pb_buffer *_buf) in radeon_bo_destroy_or_cache()
501 struct pb_buffer *buf, in radeon_bo_map()
526 if (!radeon_bo_wait(rws, (struct pb_buffer*)bo, 0, in radeon_bo_map()
537 if (!radeon_bo_wait(rws, (struct pb_buffer*)bo, 0, in radeon_bo_map()
557 radeon_bo_wait(rws, (struct pb_buffer*)bo, PIPE_TIMEOUT_INFINITE, in radeon_bo_map()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_bufmgr.h44 struct pb_buffer *buffer;
49 struct pb_buffer base;
57 d3d12_buffer(struct pb_buffer *buf) in d3d12_buffer()
67 struct pb_buffer *base_buffer; in d3d12_bo_get_base()
105 d3d12_bo_wrap_buffer(struct pb_buffer *buf);
Dd3d12_bufmgr.cpp129 d3d12_bo_wrap_buffer(struct pb_buffer *buf) in d3d12_bo_wrap_buffer()
217 d3d12_buffer_destroy(void *winsys, struct pb_buffer *pbuf) in d3d12_buffer_destroy()
227 d3d12_buffer_map(struct pb_buffer *pbuf, in d3d12_buffer_map()
235 d3d12_buffer_unmap(struct pb_buffer *pbuf) in d3d12_buffer_unmap()
240 d3d12_buffer_get_base_buffer(struct pb_buffer *buf, in d3d12_buffer_get_base_buffer()
241 struct pb_buffer **base_buf, in d3d12_buffer_get_base_buffer()
249 d3d12_buffer_validate(struct pb_buffer *pbuf, in d3d12_buffer_validate()
258 d3d12_buffer_fence(struct pb_buffer *pbuf, in d3d12_buffer_fence()
272 static struct pb_buffer *
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_bo.h60 struct pb_buffer base;
104 zink_bo(struct pb_buffer *pbuf) in zink_bo()
175 struct pb_buffer *
265 struct pb_buffer *pbuf = &bo->base; in zink_bo_unref()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_uvd.c64 struct pb_buffer **pbs[VL_NUM_COMPONENTS] = {}; in r600_video_buffer_create()
159 static struct pb_buffer* r600_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_buffer *buf) in r600_uvd_set_dtb()
175 struct pb_buffer **handle, in r600_vce_get_buffer()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_uvd.c90 static struct pb_buffer *si_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_buffer *buf) in si_uvd_set_dtb()
106 static void si_vce_get_buffer(struct pipe_resource *resource, struct pb_buffer **handle, in si_vce_get_buffer()

123