present: build only when glamor is enabled
PATCH 2/2 present: build only when glamor is enabled
nouveau_present_flip_exec references glamor_fd_from_pixmap, which do not exist when glamor is disabled
Signed-off-by Marcin Slusarz <[email protected]>
--- src/nouveau_present.c | 2 +- src/nouveau_present.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-)
src/nouveau_present.c +1 -1
@@ -23,7 +23,7 @@*/ #include "nouveau_present.h" -#ifdef DRI3 +#if defined(DRI3 ) && defined(HAVE_GLAMOR )#include "nv_include.h" #include "nouveau_glamor.h" #include "xf86drmMode.h"
src/nouveau_present.h +5 -1
@@ -4,7 +4,11 @@#include "xorg-server.h" #include "scrnintstr.h" -#ifdef DRI3 +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#if defined(DRI3 ) && defined(HAVE_GLAMOR )#include "present.h" Bool nouveau_present_init (ScreenPtr pScreen);void nouveau_present_fini (ScreenPtr pScreen);
Signature · 1 line
2.0.0