Searched refs:hw_res (Results 1 - 25 of 27) sorted by relevance

12

/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/virgl/
H A Dvirgl_staging_mgr.c42 vws->resource_reference(vws, &staging->hw_res, NULL);
48 staging->hw_res = vws->resource_create(vws,
60 if (staging->hw_res == NULL)
63 staging->map = vws->resource_map(vws, staging->hw_res);
65 vws->resource_reference(vws, &staging->hw_res, NULL);
89 vws->resource_reference(vws, &staging->hw_res, NULL);
123 assert(staging->hw_res);
130 vws->resource_reference(vws, outbuf, staging->hw_res);
H A Dvirgl_staging_mgr.h41 struct virgl_hw_res *hw_res; /* Staging buffer hw_res. */ member in struct:virgl_staging_mgr
H A Dvirgl_transfer_queue.h62 const struct virgl_hw_res *hw_res,
H A Dvirgl_transfer_queue.c106 const struct virgl_hw_res *hw_res,
113 if (xfer->hw_res != hw_res || xfer->base.level != level)
141 const struct virgl_hw_res *hw_res,
148 if (transfer_overlap(xfer, hw_res, level, box, include_touching))
158 return transfer_overlap(queued, current->hw_res, current->base.level,
187 queue->vs->vws->transfer_put(queue->vs->vws, queued->hw_res,
352 transfer->hw_res,
360 const struct virgl_hw_res *hw_res,
368 queued = virgl_transfer_queue_find_overlap(queue, hw_res,
105 transfer_overlap(const struct virgl_transfer * xfer,const struct virgl_hw_res * hw_res,unsigned level,const struct pipe_box * box,bool include_touching) argument
140 virgl_transfer_queue_find_overlap(const struct virgl_transfer_queue * queue,const struct virgl_hw_res * hw_res,unsigned level,const struct pipe_box * box,bool include_touching) argument
359 virgl_transfer_queue_extend_buffer(struct virgl_transfer_queue * queue,const struct virgl_hw_res * hw_res,unsigned offset,unsigned size,const void * data) argument
[all...]
H A Dvirgl_resource.c66 if (!vws->res_is_referenced(vws, vctx->cbuf, res->hw_res))
171 wait = (flush || vws->resource_is_busy(vws, res->hw_res));
215 (readback || (wait && vws->resource_is_busy(vws, res->hw_res))))
219 vws->transfer_get(vws, res->hw_res, &xfer->base.box, xfer->base.stride,
224 vws->resource_wait(vws, res->hw_res);
339 struct virgl_hw_res *hw_res; local in function:virgl_resource_realloc
343 hw_res = vs->vws->resource_create(vs->vws,
355 if (!hw_res)
358 vs->vws->resource_reference(vs->vws, &res->hw_res, NULL);
359 res->hw_res
[all...]
H A Dvirgl_query.c158 host_state = vs->vws->resource_map(vs->vws, query->buf->hw_res);
169 vs->vws->emit_res(vs->vws, vctx->cbuf, query->buf->hw_res, false);
187 if (vs->vws->res_is_referenced(vs->vws, vctx->cbuf, query->buf->hw_res))
191 vs->vws->resource_wait(vs->vws, query->buf->hw_res);
192 else if (vs->vws->resource_is_busy(vs->vws, query->buf->hw_res))
195 host_state = vs->vws->resource_map(vs->vws, query->buf->hw_res);
H A Dvirgl_resource.h56 struct virgl_hw_res *hw_res; member in struct:virgl_resource
80 struct virgl_hw_res *hw_res; member in struct:virgl_transfer
H A Dvirgl_streamout.c86 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
H A Dvirgl_texture.c184 ptr = vws->resource_map(vws, vtex->hw_res);
252 vws->transfer_put(vws, trans->hw_res, box,
H A Dvirgl_context.c185 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
194 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
214 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
227 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
239 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
251 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
268 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
285 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
302 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
316 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALS
[all...]
H A Dvirgl_screen.c789 vws->flush_frontbuffer(vws, vres->hw_res, level, layer, winsys_drawable_handle,
889 vscreen->vws->resource_wait(vscreen->vws, res->hw_res);
H A Dvirgl_encode.c318 if (res && res->hw_res)
319 vws->emit_res(vws, buf, res->hw_res, TRUE);
865 * this transfer targets, which is saved in xfer->hw_res.
867 vs->vws->emit_res(vs->vws, buf, xfer->hw_res, TRUE);
893 transfer.hw_res = res->hw_res;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/virgl/tests/
H A Dvirgl_staging_mgr_test.cpp52 struct virgl_hw_res *hw_res = CALLOC_STRUCT(virgl_hw_res); local in function:fake_resource_create
54 pipe_reference_init(&hw_res->reference, 1);
56 hw_res->target = target;
57 hw_res->bind = bind;
58 hw_res->size = size;
59 hw_res->data = CALLOC(size, 1);
61 return hw_res;
80 fake_resource_map(struct virgl_winsys *vws, struct virgl_hw_res *hw_res) argument
82 return hw_res->data;
114 resource_map(struct virgl_hw_res *hw_res) argument
348 failing_resource_map(struct virgl_winsys * vws,struct virgl_hw_res * hw_res) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/virgl/
H A Dvirgl_buffer.c56 vs->vws->transfer_get(vs->vws, vbuf->hw_res, box, trans->base.stride,
60 vs->vws->resource_wait(vs->vws, vbuf->hw_res);
62 trans->hw_res_map = vs->vws->resource_map(vs->vws, vbuf->hw_res);
H A Dvirgl_resource.c38 if (!vs->vws->res_is_referenced(vs->vws, vctx->cbuf, res->hw_res))
77 res->hw_res = vs->vws->resource_create(vs->vws, templ->target,
86 if (!res->hw_res) {
117 res->hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle);
118 if (!res->hw_res) {
316 vs->vws->resource_unref(vs->vws, res->hw_res);
330 return vs->vws->resource_get_handle(vs->vws, res->hw_res,
H A Dvirgl_texture.c143 vws->transfer_get(vws, vtex->hw_res, box, trans->base.stride,
147 vws->resource_wait(vws, vtex->hw_res);
149 trans->hw_res_map = vws->resource_map(vws, vtex->hw_res);
218 ptr = vws->resource_map(vws, vtex->hw_res);
284 vws->transfer_put(vws, virgl_resource(trans->base.resource)->hw_res, box,
H A Dvirgl_resource.h51 struct virgl_hw_res *hw_res; member in struct:virgl_resource
H A Dvirgl_context.c74 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
83 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
104 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
117 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
129 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
141 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
154 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
168 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
182 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE);
195 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALS
[all...]
H A Dvirgl_transfer_queue.c146 queue->vs->vws->transfer_put(queue->vs->vws, res->hw_res, &queued->base.box,
H A Dvirgl_encode.c59 if (res && res->hw_res)
60 vws->emit_res(vws, buf, res->hw_res, TRUE);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/winsys/virgl/drm/
H A Dvirgl_drm_winsys.h72 struct virgl_hw_res *hw_res; member in struct:virgl_drm_fence
H A Dvirgl_drm_winsys.c741 fence->hw_res = virgl_drm_winsys_resource_cache_create(vws, PIPE_BUFFER,
743 if (!fence->hw_res) {
886 return !virgl_drm_resource_is_busy(vdws, fence->hw_res);
891 while (virgl_drm_resource_is_busy(vdws, fence->hw_res)) {
898 virgl_drm_resource_wait(vws, fence->hw_res);
915 virgl_hw_res_destroy(vdws, dfence->hw_res);
/xsrc/external/mit/MesaLib/dist/src/gallium/winsys/virgl/drm/
H A Dvirgl_drm_winsys.h108 struct virgl_hw_res *hw_res; member in struct:virgl_drm_fence
H A Dvirgl_drm_winsys.c924 fence->hw_res = virgl_drm_winsys_resource_create(vws, PIPE_BUFFER,
926 if (!fence->hw_res) {
1055 return !virgl_drm_resource_is_busy(vws, fence->hw_res);
1060 while (virgl_drm_resource_is_busy(vws, fence->hw_res)) {
1067 virgl_drm_resource_wait(vws, fence->hw_res);
1083 virgl_drm_resource_reference(vws, &dfence->hw_res, NULL);
/xsrc/external/mit/MesaLib/dist/docs/relnotes/
H A D21.1.2.rst176 - virgl:Fix the leak of hw_res used as fence

Completed in 26 milliseconds

12