search for: drm_prime_cap_

Displaying 11 results from an estimated 11 matches for "drm_prime_cap_".

2019 Apr 29
2
[Spice-devel] [PATCH] Revert "drm/qxl: drop prime import/export callbacks"
...Maybe we need some helpers for virtual drivers which only allow > self-reimport and nothing else at all? The current gem prime helpers handle this reasonable well, I don't see a need for that. More useful would be some way to signal this self-reimport capability to userspace somehow. See DRM_PRIME_CAP_LOCAL patch. Right now I have the choice to set DRM_PRIME_CAP_{IMPORT,EXPORT}, in which case some userspace assumes it can do cross-driver export/import and trips over that not working. Or I do not set DRM_PRIME_CAP_{IMPORT,EXPORT}, which breaks DRI3 ... > I think there's qxl, virgl, expo...
2019 Apr 29
2
[Spice-devel] [PATCH] Revert "drm/qxl: drop prime import/export callbacks"
...Maybe we need some helpers for virtual drivers which only allow > self-reimport and nothing else at all? The current gem prime helpers handle this reasonable well, I don't see a need for that. More useful would be some way to signal this self-reimport capability to userspace somehow. See DRM_PRIME_CAP_LOCAL patch. Right now I have the choice to set DRM_PRIME_CAP_{IMPORT,EXPORT}, in which case some userspace assumes it can do cross-driver export/import and trips over that not working. Or I do not set DRM_PRIME_CAP_{IMPORT,EXPORT}, which breaks DRI3 ... > I think there's qxl, virgl, expo...
2019 Apr 29
1
[Spice-devel] [PATCH] Revert "drm/qxl: drop prime import/export callbacks"
Hi, > > More useful would be some way to signal this self-reimport capability > > to userspace somehow. See DRM_PRIME_CAP_LOCAL patch. > > Userspace is supposed to test whether import/export works for a > specific combo, not blindly assume it does and then keel over. I think > we need to fix that, not add more flags - there's lots of reasons why > a given pair of devices can't share buffers (e.g...
2019 Apr 09
2
[PATCH] drm/qxl: drop prime import/export callbacks
On Sat, 12 Jan 2019 at 07:13, Dave Airlie <airlied at gmail.com> wrote: > > On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann <kraxel at redhat.com> wrote: > > > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > > userspace. It's been pointed out to me that disables DRI3 for these devices, I'm not sure that is the solution we actually wanted. any ideas? Dave. > > > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> > > Reviewed-by: Dave Airlie...
2019 Apr 09
2
[PATCH] drm/qxl: drop prime import/export callbacks
On Sat, 12 Jan 2019 at 07:13, Dave Airlie <airlied at gmail.com> wrote: > > On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann <kraxel at redhat.com> wrote: > > > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > > userspace. It's been pointed out to me that disables DRI3 for these devices, I'm not sure that is the solution we actually wanted. any ideas? Dave. > > > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> > > Reviewed-by: Dave Airlie...
2019 Apr 09
0
[PATCH] drm/qxl: drop prime import/export callbacks
...2 Jan 2019 at 07:13, Dave Airlie <airlied at gmail.com> wrote: > > > > On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann <kraxel at redhat.com> wrote: > > > > > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > > > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > > > userspace. > > It's been pointed out to me that disables DRI3 for these devices, I'm > not sure that is the solution we actually wanted. > > any ideas? Well. Lets have a look at where we stand: * drm_gem_prime_export() works with qxl, yo...
2019 Apr 29
0
[Spice-devel] [PATCH] Revert "drm/qxl: drop prime import/export callbacks"
...irtual drivers which only allow > > self-reimport and nothing else at all? > > The current gem prime helpers handle this reasonable well, > I don't see a need for that. > > More useful would be some way to signal this self-reimport capability > to userspace somehow. See DRM_PRIME_CAP_LOCAL patch. Userspace is supposed to test whether import/export works for a specific combo, not blindly assume it does and then keel over. I think we need to fix that, not add more flags - there's lots of reasons why a given pair of devices can't share buffers (e.g. all the contiguous allo...
2019 Apr 09
1
[PATCH] drm/qxl: drop prime import/export callbacks
...Airlie <airlied at gmail.com> wrote: > > > > > > On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann <kraxel at redhat.com> wrote: > > > > > > > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > > > > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > > > > userspace. > > > > It's been pointed out to me that disables DRI3 for these devices, I'm > > not sure that is the solution we actually wanted. > > > > any ideas? > > Well. Lets have a look at where we stand: > &gt...
2019 Apr 09
1
[PATCH] drm/qxl: drop prime import/export callbacks
...Airlie <airlied at gmail.com> wrote: > > > > > > On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann <kraxel at redhat.com> wrote: > > > > > > > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > > > > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > > > > userspace. > > > > It's been pointed out to me that disables DRI3 for these devices, I'm > > not sure that is the solution we actually wanted. > > > > any ideas? > > Well. Lets have a look at where we stand: > &gt...
2019 Apr 26
3
[PATCH] Revert "drm/qxl: drop prime import/export callbacks"
This reverts commit f4c34b1e2a37d5676180901fa6ff188bcb6371f8. Simliar to commit a0cecc23cfcb Revert "drm/virtio: drop prime import/export callbacks". We have to do the same with qxl, for the same reasons (it breaks DRI3). Drop the WARN_ON_ONCE(). Fixes: f4c34b1e2a37d5676180901fa6ff188bcb6371f8 Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> ---
2019 Apr 26
3
[PATCH] Revert "drm/qxl: drop prime import/export callbacks"
This reverts commit f4c34b1e2a37d5676180901fa6ff188bcb6371f8. Simliar to commit a0cecc23cfcb Revert "drm/virtio: drop prime import/export callbacks". We have to do the same with qxl, for the same reasons (it breaks DRI3). Drop the WARN_ON_ONCE(). Fixes: f4c34b1e2a37d5676180901fa6ff188bcb6371f8 Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> ---