[Mesa-stable] [PATCH 2/2] auxiliary: use vl_drm_screen_create method for surfaceless

sguttula suresh.guttula at amd.com
Tue Oct 10 06:20:50 UTC 2017


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-stable at lists.freedesktop.org
Cc: Emil Velikov <emil.velikov at collabora.com> 
Cc: Christian König <christian.koenig at amd.com>
Cc: Deepak Sharma <deepak.sharma at amd.com>
Signed-off-by: sguttula <suresh.guttula at amd.com>
Reviewed-by: Deepak Sharma <deepak.sharma at 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



More information about the mesa-stable mailing list