swrastg: Use new drm_driver interface in EGL
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 1 Jun 2010 06:56:33 +0000 (07:56 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Sun, 6 Jun 2010 11:29:40 +0000 (12:29 +0100)
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

index defd11c6878daac248cc9d41b23d7b7ab3365b68..3c29be83a7c567275101e7e94c75a720bec70b66 100644 (file)
@@ -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 *);