Mesa (gallium-drm-driver-descriptor): swrastg: Use new drm_driver interface in EGL

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Mon Jun 7 18:16:33 UTC 2010


Module: Mesa
Branch: gallium-drm-driver-descriptor
Commit: 16fa300d55f789cfd71b1d61e3ff74d2eafd12ab
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16fa300d55f789cfd71b1d61e3ff74d2eafd12ab

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Tue Jun  1 07:56:33 2010 +0100

swrastg: Use new drm_driver interface in EGL

The EGL state tracker is really weird in how it does software,
in the past we would just not return a drm_api struct but now,
there is no callback to get a function so we just set the
create_screen hock to NULL to make it switch to software.

---

 src/gallium/targets/egl-swrast/swrast_glue.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/gallium/targets/egl-swrast/swrast_glue.c b/src/gallium/targets/egl-swrast/swrast_glue.c
index defd11c..3c29be8 100644
--- a/src/gallium/targets/egl-swrast/swrast_glue.c
+++ b/src/gallium/targets/egl-swrast/swrast_glue.c
@@ -1,10 +1,11 @@
-#include "state_tracker/drm_api.h"
 
-struct drm_api *
-drm_api_create()
-{
-   return NULL;
-}
+#include "state_tracker/drm_driver.h"
+
+struct drm_driver_descriptor drm_driver = {
+   .name = "swrast";
+   .driver_name = NULL;
+   .create_screen = NULL;
+};
 
 /* A poor man's --whole-archive for EGL drivers */
 void *_eglMain(void *);




More information about the mesa-commit mailing list