Lines Matching refs:shmem
76 struct vn_renderer_shmem *shmem, in vn_cs_encoder_add_buffer() argument
85 cur_buf->shmem = shmem; in vn_cs_encoder_add_buffer()
117 enc->buffers[i].shmem); in vn_cs_encoder_gc_buffers()
135 vn_renderer_shmem_unref(enc->instance->renderer, enc->buffers[i].shmem); in vn_cs_encoder_gc_buffers()
140 vn_cs_encoder_add_buffer(enc, cur_buf->shmem, used, in vn_cs_encoder_gc_buffers()
169 vn_renderer_shmem_unref(enc->instance->renderer, enc->buffers[i].shmem); in vn_cs_encoder_fini()
262 struct vn_renderer_shmem *shmem; in vn_cs_encoder_reserve_internal() local
265 shmem = vn_renderer_shmem_create(enc->instance->renderer, buf_size); in vn_cs_encoder_reserve_internal()
269 shmem = in vn_cs_encoder_reserve_internal()
272 if (!shmem) in vn_cs_encoder_reserve_internal()
280 vn_renderer_shmem_unref(enc->instance->renderer, shmem); in vn_cs_encoder_reserve_internal()
287 vn_cs_encoder_add_buffer(enc, shmem, buf_offset, in vn_cs_encoder_reserve_internal()
288 shmem->mmap_ptr + buf_offset, buf_size); in vn_cs_encoder_reserve_internal()