pmaports/temp/mesa-dri-simpledrm/usr-lib-xorg-modules-dri-simpledrm_dri.c
Sergey Lisov 73a9100e13
temp/mesa-dri-simpledrm: new package (MR 4026)
This package provides a KMSRO stub for simpledrm, allowing GPU drivers from Mesa to work with it.
2023-07-02 10:06:08 +02:00

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();
}