diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-06-05 14:34:23 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-06-13 08:25:48 +0000 |
commit | cb728f28acbf8982d37aa3863cae58db95a439ca (patch) | |
tree | 1f85a2195b437d2cfb69f9c9d55da553b6e8d0a6 /src/gallium/auxiliary/vl/vl_winsys.h | |
parent | b4c7ce360bc07c507de120d218c7479161c22bc2 (diff) |
vl: Always enable drm winsys.
The dri2 winsys also uses libdrm (and you can only enable dri3 if
you enable dri2), and the drm winsys only requires libdrm.
So if any winsys is enabled you can also enable the drm winsys, and
since we always want at least one winsys we can always enable it.
I removed the check for the drm platform for VA and OMX since they
do not care anymore. Since we still check for one of r600g, nouveau
or radeonsi, we are guarantueed to still only enable it by default
in a configuration that requires libdrm anyway. So for people using
va=auto, we don't suddenly start requiring libdrm were we did not
before.
This supersedes "vl: Enable DRM by default.", which I pushed, but
rolled back because it used dep_libdrm before its definition.
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_winsys.h')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_winsys.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h index 3a35cb6a859..a12b08bcf7e 100644 --- a/src/gallium/auxiliary/vl/vl_winsys.h +++ b/src/gallium/auxiliary/vl/vl_winsys.h @@ -92,12 +92,8 @@ static inline struct vl_screen * vl_dri3_screen_create(void *display, int screen) { return NULL; }; #endif -#ifdef HAVE_DRM_PLATFORM +/* Always enable the DRM vl winsys */ struct vl_screen * vl_drm_screen_create(int fd); -#else -static inline struct vl_screen * -vl_drm_screen_create(int fd) { return NULL; }; -#endif #endif |