driOptionCache is a member of struct dri_context, but it's defined in xmlconfig.h, which isn't getting included in drisw. The patch fixes this error when defining struct dri_context under drisw:
../../../../../src/gallium/state_trackers/dri/common/dri_context.h:52: error: expected specifier-qualifier-list before 'driOptionCache' (the error was also making all later members of the struct get completely ignored, causing weird " 'struct dri_context' has no member named 'st'" errors)
From 5f890f086b2bc7f298d5c5e8c1ced8feeb5e634b Mon Sep 17 00:00:00 2001 From: nobled <nob...@dreamwidth.org> Date: Sat, 7 Aug 2010 12:21:02 +0000 Subject: [PATCH] st/dri: include xmlconfig.h Fixes an error when defining 'struct dri_context' under drisw: ../../../../../src/gallium/state_trackers/dri/common/dri_context.h:52: error: expected specifier-qualifier-list before 'driOptionCache' --- .../state_trackers/dri/common/dri_wrapper.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/common/dri_wrapper.h b/src/gallium/state_trackers/dri/common/dri_wrapper.h index 141ba02..72ef84b 100644 --- a/src/gallium/state_trackers/dri/common/dri_wrapper.h +++ b/src/gallium/state_trackers/dri/common/dri_wrapper.h @@ -5,6 +5,7 @@ #include "dri_util.h" #else #include "drisw_util.h" +#include "xmlconfig.h" /* for driOptionCache */ #endif #endif -- 1.5.4.3
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev