mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02:00
mesa: move more swrast-related #defines out of core Mesa
This commit is contained in:
parent
7ad880f49f
commit
2b0aa3fb21
3 changed files with 28 additions and 40 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue