This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with g++ -o gbm_test.bin gbm_test.cpp -lgbm -lGL -lEGL -I/usr/include/libdrm -I/usr/include/EGL -ldrm | |
#include <iostream> | |
#include <xf86drm.h> | |
#include <fcntl.h> | |
#include <gbm.h> | |
#include <EGL/egl.h> | |
#include <EGL/eglext.h> | |
#include <drm.h> | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with: g++ -o test.bin test.cpp -lgbm -lGL -lEGL -I/usr/include/libdrm -I/usr/include/EGL -ldrm | |
#include <iostream> | |
#include <xf86drm.h> | |
#include <fcntl.h> | |
#include <gbm.h> | |
#include <EGL/egl.h> | |
#include <EGL/eglext.h> | |
#include <drm.h> | |
typedef EGLDisplay *eglGetPlatformDisplayEXT_t (EGLenum platform, void *native_display, const EGLint *attrib_list); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QueryInterface { | |
public: | |
virtual std::list<DriverConfiguration> queryDriverConfigurationOptions(const Glib::ustring &locale) = 0; | |
virtual std::map<Glib::ustring, GPUInfo_ptr> enumerateDRIDevices(const Glib::ustring &locale) = 0; | |
}; | |
class DriQuery : public QueryInterface { | |
/* code that already exists */ |