From 2b0aa3fb21386051976bf3c45e6455fc45d69bb3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 20 Feb 2012 13:13:55 -0700 Subject: mesa: move more swrast-related #defines out of core Mesa --- src/mesa/main/config.h | 40 ---------------------------------------- src/mesa/swrast/s_chan.h | 8 ++++++++ src/mesa/swrast/swrast.h | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 40 deletions(-) (limited to 'src') 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. */ -- cgit v1.2.3