Re: [PATCH] drm/virtio: conditionally allocate virtio_gpu_fence

2023-06-28 Thread Gurchetan Singh
On Mon, Jun 19, 2023 at 3:02 PM Dmitry Osipenko < dmitry.osipe...@collabora.com> wrote: > On 6/13/23 20:43, Gurchetan Singh wrote: > > We don't want to create a fence for every command submission. It's > > only necessary when userspace provides a waitable token for submission. > > This could be:

Re: [PATCH] drm/virtio: conditionally allocate virtio_gpu_fence

2023-06-19 Thread Dmitry Osipenko
On 6/13/23 20:43, Gurchetan Singh wrote: > We don't want to create a fence for every command submission. It's > only necessary when userspace provides a waitable token for submission. > This could be: > > 1) bo_handles, to be used with VIRTGPU_WAIT > 2) out_fence_fd, to be used with dma_fence api

[PATCH] drm/virtio: conditionally allocate virtio_gpu_fence

2023-06-13 Thread Gurchetan Singh
We don't want to create a fence for every command submission. It's only necessary when userspace provides a waitable token for submission. This could be: 1) bo_handles, to be used with VIRTGPU_WAIT 2) out_fence_fd, to be used with dma_fence apis 3) a ring_idx provided with VIRTGPU_CONTEXT_PARAM_P