when display type is VA_DISPLAY_DRM_RENDERNODES and if drm screen create method is not enabled then vscreen is NULL. To fix this issue,this patch will enable vl_drm_screen_create() for surfaceless platforms
Cc: mesa-sta...@lists.freedesktop.org Cc: Emil Velikov <emil.veli...@collabora.com> Cc: Christian König <christian.koe...@amd.com> Cc: Deepak Sharma <deepak.sha...@amd.com> Signed-off-by: sguttula <suresh.gutt...@amd.com> Reviewed-by: Deepak Sharma <deepak.sha...@amd.com> Change-Id: Ifcb3c529d10a5bd34fd0529e4874bb5ef628d1ea --- src/gallium/auxiliary/Makefile.am | 3 +++ src/gallium/auxiliary/vl/vl_winsys.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am index a64ead2..86eca16 100644 --- a/src/gallium/auxiliary/Makefile.am +++ b/src/gallium/auxiliary/Makefile.am @@ -103,6 +103,9 @@ if HAVE_PLATFORM_DRM libgalliumvlwinsys_la_SOURCES += $(VL_WINSYS_DRM_SOURCES) endif +if HAVE_PLATFORM_SURFACELESS +libgalliumvlwinsys_la_SOURCES += $(VL_WINSYS_DRM_SOURCES) +endif endif # NEED_GALLIUM_VL_WINSYS endif # NEED_GALLIUM_VL diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h index 77277ce..d8e1177 100644 --- a/src/gallium/auxiliary/vl/vl_winsys.h +++ b/src/gallium/auxiliary/vl/vl_winsys.h @@ -86,7 +86,7 @@ static inline struct vl_screen * vl_dri3_screen_create(void *display, int screen) { return NULL; }; #endif -#ifdef HAVE_DRM_PLATFORM +#if defined(HAVE_DRM_PLATFORM) || defined(HAVE_SURFACELESS_PLATFORM) struct vl_screen * vl_drm_screen_create(int fd); #else -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev