mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
progs/egl: Replace EGL_i915 by EGL_DEFAULT_DISPLAY.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
cb0de06301
commit
fa8df0c40d
8 changed files with 6 additions and 18 deletions
|
|
@ -102,10 +102,7 @@ main(int argc, char *argv[])
|
|||
EGL_NONE
|
||||
};
|
||||
|
||||
/*
|
||||
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
*/
|
||||
EGLDisplay d = eglGetDisplay((EGLNativeDisplayType) "!EGL_i915");
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
|
|
|
|||
|
|
@ -119,10 +119,7 @@ main(int argc, char *argv[])
|
|||
EGLScreenMESA screen;
|
||||
EGLint count;
|
||||
|
||||
/*
|
||||
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
*/
|
||||
EGLDisplay d = eglGetDisplay((EGLNativeDisplayType) "!EGL_i915");
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
|
|
|
|||
|
|
@ -577,10 +577,7 @@ main(int argc, char *argv[])
|
|||
EGL_NONE
|
||||
};
|
||||
|
||||
/*
|
||||
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
*/
|
||||
EGLDisplay d = eglGetDisplay("!EGL_i915");
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* DBR : Create EGL context/surface etc */
|
||||
d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
|
||||
d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
|
|
|
|||
|
|
@ -147,8 +147,7 @@ int
|
|||
main(int argc, char *argv[])
|
||||
{
|
||||
int maj, min;
|
||||
//EGLDisplay d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
|
||||
EGLDisplay d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
|
||||
EGLDisplay d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
printf("eglinfo: eglInitialize failed\n");
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ main(int argc, char *argv[])
|
|||
EGLint count, chosenMode;
|
||||
EGLint width = 0, height = 0;
|
||||
|
||||
d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
|
||||
d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
|
|
|
|||
|
|
@ -130,9 +130,7 @@ static void run(EGLDisplay dpy, EGLSurface surf, int ttr)
|
|||
|
||||
while (ct - st < ttr)
|
||||
{
|
||||
double tt = current_time();
|
||||
double dt = tt - ct;
|
||||
ct = tt;
|
||||
ct = current_time();
|
||||
|
||||
draw();
|
||||
|
||||
|
|
@ -174,7 +172,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* DBR : Create EGL context/surface etc */
|
||||
d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
|
||||
d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &maj, &min)) {
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* DBR : Create EGL context/surface etc */
|
||||
d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
|
||||
d = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
assert(d);
|
||||
|
||||
if (!eglInitialize(d, &major, &minor)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue