diff options
author | Petri Latvala <petri.latvala@intel.com> | 2021-03-29 17:07:14 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2021-03-30 07:03:23 +0300 |
commit | 8231f28f49255b8a71777351830c18fb7a7c6171 (patch) | |
tree | 6930fd7bdfc79ba0069e25c25801afc67f40c0d3 /lib/igt_nouveau.h | |
parent | 3887134e739f480cefe1dc7f13eb54f7bf3ca27f (diff) |
lib: Don't use libdrm_nouveau if not found
Only #include the libdrm_nouveau headers if HAVE_LIBDRM_NOUVEAU is set
so IGT builds again without it installed.
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Lyude Paul <lyude@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'lib/igt_nouveau.h')
-rw-r--r-- | lib/igt_nouveau.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/igt_nouveau.h b/lib/igt_nouveau.h index ea44adb2..c518de3c 100644 --- a/lib/igt_nouveau.h +++ b/lib/igt_nouveau.h @@ -26,10 +26,6 @@ #include <stddef.h> #include <inttypes.h> -#include <nouveau/nouveau.h> -#include <nouveau/nvif/class.h> -#include <nouveau/nvif/cl0080.h> - #include "igt_core.h" #define IGT_NOUVEAU_CHIPSET_GV100 0x140 @@ -37,6 +33,10 @@ typedef struct igt_fb igt_fb_t; #ifdef HAVE_LIBDRM_NOUVEAU +#include <nouveau/nouveau.h> +#include <nouveau/nvif/class.h> +#include <nouveau/nvif/cl0080.h> + #define DECL(d) d #else /* There shouldn't be any code that calls igt_nouveau_* functions without libdrm support enabled, as |