[PATCH 01/12] driconf: Add the PP descriptions

Lauri Kasanen cand at gmx.com
Tue Aug 16 06:06:13 PDT 2011


Signed-off-by: Lauri Kasanen <cand at gmx.com>
---
 src/mesa/drivers/dri/common/xmlpool/options.h   |   60 +++++++++++++++++++=
++++
 src/mesa/drivers/dri/common/xmlpool/t_options.h |   30 +++++++++++
 2 files changed, 90 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/common/xmlpool/options.h b/src/mesa/drive=
rs/dri/common/xmlpool/options.h
index d765955..1e584ba 100644
--- a/src/mesa/drivers/dri/common/xmlpool/options.h
+++ b/src/mesa/drivers/dri/common/xmlpool/options.h
@@ -425,6 +425,66 @@ DRI_CONF_OPT_BEGIN(hyperz,bool,def) \
         DRI_CONF_DESC(sv,"Anv=E4nd HyperZ f=F6r att maximera prestandan") \
 DRI_CONF_OPT_END
=20
+#define DRI_CONF_PP_CELSHADE(def) \
+DRI_CONF_OPT_BEGIN_V(pp_celshade,enum,def,"0:1") \
+        DRI_CONF_DESC(en,"A post-processing filter to cel-shade the output=
") \
+        DRI_CONF_DESC(de,"A post-processing filter to cel-shade the output=
") \
+        DRI_CONF_DESC(es,"A post-processing filter to cel-shade the output=
") \
+        DRI_CONF_DESC(nl,"A post-processing filter to cel-shade the output=
") \
+        DRI_CONF_DESC(fr,"A post-processing filter to cel-shade the output=
") \
+        DRI_CONF_DESC(sv,"A post-processing filter to cel-shade the output=
") \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_NORED(def) \
+DRI_CONF_OPT_BEGIN_V(pp_nored,enum,def,"0:1") \
+        DRI_CONF_DESC(en,"A post-processing filter to remove the red chann=
el") \
+        DRI_CONF_DESC(de,"A post-processing filter to remove the red chann=
el") \
+        DRI_CONF_DESC(es,"A post-processing filter to remove the red chann=
el") \
+        DRI_CONF_DESC(nl,"A post-processing filter to remove the red chann=
el") \
+        DRI_CONF_DESC(fr,"A post-processing filter to remove the red chann=
el") \
+        DRI_CONF_DESC(sv,"A post-processing filter to remove the red chann=
el") \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_NOGREEN(def) \
+DRI_CONF_OPT_BEGIN_V(pp_nogreen,enum,def,"0:1") \
+        DRI_CONF_DESC(en,"A post-processing filter to remove the green cha=
nnel") \
+        DRI_CONF_DESC(de,"A post-processing filter to remove the green cha=
nnel") \
+        DRI_CONF_DESC(es,"A post-processing filter to remove the green cha=
nnel") \
+        DRI_CONF_DESC(nl,"A post-processing filter to remove the green cha=
nnel") \
+        DRI_CONF_DESC(fr,"A post-processing filter to remove the green cha=
nnel") \
+        DRI_CONF_DESC(sv,"A post-processing filter to remove the green cha=
nnel") \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_NOBLUE(def) \
+DRI_CONF_OPT_BEGIN_V(pp_noblue,enum,def,"0:1") \
+        DRI_CONF_DESC(en,"A post-processing filter to remove the blue chan=
nel") \
+        DRI_CONF_DESC(de,"A post-processing filter to remove the blue chan=
nel") \
+        DRI_CONF_DESC(es,"A post-processing filter to remove the blue chan=
nel") \
+        DRI_CONF_DESC(nl,"A post-processing filter to remove the blue chan=
nel") \
+        DRI_CONF_DESC(fr,"A post-processing filter to remove the blue chan=
nel") \
+        DRI_CONF_DESC(sv,"A post-processing filter to remove the blue chan=
nel") \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_JIMENEZMLAA(def,min,max) \
+DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa,int,def, # min ":" # max ) \
+        DRI_CONF_DESC(en,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality") \
+        DRI_CONF_DESC(de,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality") \
+        DRI_CONF_DESC(es,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality") \
+        DRI_CONF_DESC(nl,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality") \
+        DRI_CONF_DESC(fr,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality") \
+        DRI_CONF_DESC(sv,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality") \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_JIMENEZMLAA_COLOR(def,min,max) \
+DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa_color,int,def, # min ":" # max ) \
+        DRI_CONF_DESC(en,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL =
apps") \
+        DRI_CONF_DESC(de,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL =
apps") \
+        DRI_CONF_DESC(es,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL =
apps") \
+        DRI_CONF_DESC(nl,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL =
apps") \
+        DRI_CONF_DESC(fr,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL =
apps") \
+        DRI_CONF_DESC(sv,"Morphological anti-aliasing based on Jimenez\' M=
LAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL =
apps") \
+DRI_CONF_OPT_END
+
 #define DRI_CONF_MAX_TEXTURE_UNITS(def,min,max) \
 DRI_CONF_OPT_BEGIN_V(texture_units,int,def, # min ":" # max ) \
         DRI_CONF_DESC(en,"Number of texture units used") \
diff --git a/src/mesa/drivers/dri/common/xmlpool/t_options.h b/src/mesa/dri=
vers/dri/common/xmlpool/t_options.h
index 5fd6ec6..2427aa7 100644
--- a/src/mesa/drivers/dri/common/xmlpool/t_options.h
+++ b/src/mesa/drivers/dri/common/xmlpool/t_options.h
@@ -191,6 +191,36 @@ DRI_CONF_OPT_BEGIN(hyperz,bool,def) \
         DRI_CONF_DESC(en,gettext("Use HyperZ to boost performance")) \
 DRI_CONF_OPT_END
=20
+#define DRI_CONF_PP_CELSHADE(def) \
+DRI_CONF_OPT_BEGIN_V(pp_celshade,enum,def,"0:1") \
+        DRI_CONF_DESC(en,gettext("A post-processing filter to cel-shade th=
e output")) \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_NORED(def) \
+DRI_CONF_OPT_BEGIN_V(pp_nored,enum,def,"0:1") \
+        DRI_CONF_DESC(en,gettext("A post-processing filter to remove the r=
ed channel")) \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_NOGREEN(def) \
+DRI_CONF_OPT_BEGIN_V(pp_nogreen,enum,def,"0:1") \
+        DRI_CONF_DESC(en,gettext("A post-processing filter to remove the g=
reen channel")) \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_NOBLUE(def) \
+DRI_CONF_OPT_BEGIN_V(pp_noblue,enum,def,"0:1") \
+        DRI_CONF_DESC(en,gettext("A post-processing filter to remove the b=
lue channel")) \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_JIMENEZMLAA(def,min,max) \
+DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa,int,def, # min ":" # max ) \
+        DRI_CONF_DESC(en,gettext("Morphological anti-aliasing based on Jim=
enez\\\' MLAA. 0 to disable, 8 for default quality")) \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_PP_JIMENEZMLAA_COLOR(def,min,max) \
+DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa_color,int,def, # min ":" # max ) \
+        DRI_CONF_DESC(en,gettext("Morphological anti-aliasing based on Jim=
enez\\\' MLAA. 0 to disable, 8 for default quality. Color version, usable w=
ith 2d GL apps")) \
+DRI_CONF_OPT_END
+
 #define DRI_CONF_MAX_TEXTURE_UNITS(def,min,max) \
 DRI_CONF_OPT_BEGIN_V(texture_units,int,def, # min ":" # max ) \
         DRI_CONF_DESC(en,gettext("Number of texture units used")) \
--=20
1.7.2.1



More information about the mesa-dev mailing list