mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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.
This commit is contained in:
parent
c1a19689b8
commit
16fa300d55
1 changed files with 7 additions and 6 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue