pmaports/temp/mesa-dri-simpledrm/usr-lib-xorg-modules-dri-simpledrm_dri.c

15 lines
428 B
C
Raw Normal View History

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