contrib/vhost-user-gpu: add support for sending dmabuf modifiers
commite3c82fe04f31b8d6c17b0a17a179f1bbb8454aa1
authorErico Nunes <ernunes@redhat.com>
Fri, 14 Jul 2023 15:38:59 +0000 (14 17:38 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 12 Sep 2023 06:37:01 +0000 (12 10:37 +0400)
tree38d4c1eb6e9bbd3073fa0406aee36c4436c31de2
parent75f217b4addbc688d7fbff5dcc4c8d699d1f7060
contrib/vhost-user-gpu: add support for sending dmabuf modifiers

virglrenderer recently added virgl_renderer_resource_get_info_ext as a
new api, which gets resource information, including dmabuf modifiers.

We have to support dmabuf modifiers since the driver may choose to
allocate buffers with these modifiers for efficiency, and importing
buffers without modifiers information may result in completely broken
rendering.

Signed-off-by: Erico Nunes <ernunes@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20230714153900.475857-3-ernunes@redhat.com>
contrib/vhost-user-gpu/vhost-user-gpu.c
contrib/vhost-user-gpu/virgl.c
contrib/vhost-user-gpu/vugpu.h