summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amdgpu_probe.c1
-rw-r--r--src/drmmode_display.c5
2 files changed, 2 insertions, 4 deletions
diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c
index 7ce9090..e3f8c08 100644
--- a/src/amdgpu_probe.c
+++ b/src/amdgpu_probe.c
@@ -50,7 +50,6 @@
#include "xf86.h"
#include "xf86drmMode.h"
-#include "dri.h"
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <xf86_OSproc.h>
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index f74106e..6047316 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -47,8 +47,6 @@
#include "amdgpu_glamor.h"
#include "amdgpu_pixmap.h"
-#include <dri.h>
-
/* DPMS */
#ifdef HAVE_XEXTPROTO_71
#include <X11/extensions/dpmsconst.h>
@@ -513,9 +511,10 @@ drmmode_crtc_scanout_create(xf86CrtcPtr crtc, PixmapPtr *scanout,
ErrorF("failed to create CRTC scanout FB\n");
error:
drmmode_crtc_scanout_destroy(scanout);
+ return FALSE;
}
- return FALSE;
+ return TRUE;
}
static void