From 3163b65ba73c4c6343e1d3ee69db07721a3713bf Mon Sep 17 00:00:00 2001 From: Antoine Coutant Date: Thu, 4 Apr 2024 09:38:32 +0200 Subject: [PATCH] drisw: fix build without dri3 commit 1887368df41 ("glx/sw: check for modifier support in the kopper path") added dri3_priv.h header and dri3_check_multibuffer() function in drisw that can be build without dri3. Commit 4477139ec2e added a guard around dri3_check_multibuffer() function but not around dri3_priv.h header. Add HAVE_DRI3 guard around dri3_priv.h header. Fixes: 1887368df41 ("glx/sw: check for modifier support in the kopper path") v2: Remove the guard around dri3_check_multibuffer() function. Signed-off-by: Romain Naour Signed-off-by: Antoine Coutant Part-of: --- src/glx/drisw_glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 98a69554eec..c45308b8f09 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -32,7 +32,9 @@ #include #include "dri_common.h" #include "drisw_priv.h" +#ifdef HAVE_DRI3 #include "dri3_priv.h" +#endif #include #include #include