73a9100e13
This package provides a KMSRO stub for simpledrm, allowing GPU drivers from Mesa to work with it.
14 lines
428 B
C
14 lines
428 B
C
#include <dlfcn.h>
|
|
|
|
/*
|
|
This is a temporary hack until Mesa upstream adds 2 lines to their code.
|
|
https://gitlab.freedesktop.org/mesa/mesa/-/issues/8929
|
|
*/
|
|
|
|
void* __driDriverGetExtensions_simpledrm(void)
|
|
{
|
|
static void*(*ddge_mediatek)(void);
|
|
if(!ddge_mediatek)
|
|
ddge_mediatek = dlsym(dlopen("/usr/lib/xorg/modules/dri/mediatek_dri.so", RTLD_NOW), "__driDriverGetExtensions_mediatek");
|
|
return ddge_mediatek();
|
|
}
|