From: Brian Paul Date: Mon, 20 Feb 2012 20:13:55 +0000 (-0700) Subject: mesa: move more swrast-related #defines out of core Mesa X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b0aa3fb21386051976bf3c45e6455fc45d69bb3;p=mesa.git mesa: move more swrast-related #defines out of core Mesa --- diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index c70cc1818a5..8bf741f99ac 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -262,46 +262,6 @@ /*@}*/ -/** - * \name Mesa-specific parameters - */ -/*@{*/ - - -/** - * If non-zero use GLdouble for walking triangle edges, for better accuracy. - */ -#define TRIANGLE_WALK_DOUBLE 0 - - -/** - * Bits per depth buffer value (max is 32). - */ -#ifndef DEFAULT_SOFTWARE_DEPTH_BITS -#define DEFAULT_SOFTWARE_DEPTH_BITS 16 -#endif -/** Depth buffer data type */ -#if DEFAULT_SOFTWARE_DEPTH_BITS <= 16 -#define DEFAULT_SOFTWARE_DEPTH_TYPE GLushort -#else -#define DEFAULT_SOFTWARE_DEPTH_TYPE GLuint -#endif - - -/** - * Bits per stencil value: 8 - */ -#define STENCIL_BITS 8 - - -/** - * For swrast, bits per color channel: 8, 16 or 32 - */ -#ifndef CHAN_BITS -#define CHAN_BITS 8 -#endif - - /* * Color channel component order * diff --git a/src/mesa/swrast/s_chan.h b/src/mesa/swrast/s_chan.h index 94ac8b65be1..1db7fae4dff 100644 --- a/src/mesa/swrast/s_chan.h +++ b/src/mesa/swrast/s_chan.h @@ -35,6 +35,14 @@ #include "main/config.h" +/** + * Default bits per color channel: 8, 16 or 32 + */ +#ifndef CHAN_BITS +#define CHAN_BITS 8 +#endif + + /** * Color channel data type. */ diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h index 15b07ed0d55..a299e6fda87 100644 --- a/src/mesa/swrast/swrast.h +++ b/src/mesa/swrast/swrast.h @@ -36,6 +36,26 @@ #include "swrast/s_chan.h" +/** + * If non-zero use GLdouble for walking triangle edges, for better accuracy. + */ +#define TRIANGLE_WALK_DOUBLE 0 + + +/** + * Bits per depth buffer value (max is 32). + */ +#ifndef DEFAULT_SOFTWARE_DEPTH_BITS +#define DEFAULT_SOFTWARE_DEPTH_BITS 16 +#endif +/** Depth buffer data type */ +#if DEFAULT_SOFTWARE_DEPTH_BITS <= 16 +#define DEFAULT_SOFTWARE_DEPTH_TYPE GLushort +#else +#define DEFAULT_SOFTWARE_DEPTH_TYPE GLuint +#endif + + /** * Max image/surface/texture size. */