summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/xmlpool
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2012-12-04 16:29:00 -0800
committerCarl Worth <cworth@cworth.org>2013-01-11 13:55:41 -0800
commitc0c9c9966f54b2e4a4eb2ffa2abe343c1b82b823 (patch)
tree5321475645fa700f9a91bf6018e06ddf4b1401ee /src/mesa/drivers/dri/common/xmlpool
parentc6c575c69abd104397946cbd8f20b3451fdeb369 (diff)
driconf: Add a new option: disable_glsl_line_continuations
This is to enable a quirk for Savage2 which includes a shader with a stray '\' at the end of a comment line. Interpreting that backslash as a line continuation will break the compilation of the shader, so we need a way to disable this. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlpool')
-rw-r--r--src/mesa/drivers/dri/common/xmlpool/t_options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/xmlpool/t_options.h b/src/mesa/drivers/dri/common/xmlpool/t_options.h
index 78f17650b2..683a473660 100644
--- a/src/mesa/drivers/dri/common/xmlpool/t_options.h
+++ b/src/mesa/drivers/dri/common/xmlpool/t_options.h
@@ -282,3 +282,8 @@ DRI_CONF_OPT_END
DRI_CONF_OPT_BEGIN(disable_blend_func_extended,bool,def) \
DRI_CONF_DESC(en,gettext("Disable dual source blending")) \
DRI_CONF_OPT_END
+
+#define DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS(def) \
+DRI_CONF_OPT_BEGIN(disable_glsl_line_continuations,bool,def) \
+ DRI_CONF_DESC(en,gettext("Disable backslash-based line continuations in GLSL source")) \
+DRI_CONF_OPT_END