diff options
author | Tom Fogal <[email protected]> | 2009-08-13 19:23:54 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-14 08:56:51 -0600 |
commit | 66bc17e80e22d8f205cc02171b1c266feab6631f (patch) | |
tree | bfe7c52ce63baa1592607a0656f2a640674b9468 /src/mesa/main | |
parent | 87946d206f64946af564f2086299e190883ef6ad (diff) |
Allow external settings of MAX_WIDTH/HEIGHT.
Conditionalize MAX_WIDTH / MAX_HEIGHT defines so that users can
set them via CFLAGS.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/config.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index f77a29a43ec..e4995c35c44 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -138,9 +138,14 @@ /** * Maximum viewport/image width. Must accomodate all texture sizes too. */ -#define MAX_WIDTH 4096 + +#ifndef MAX_WIDTH +# define MAX_WIDTH 4096 +#endif /** Maximum viewport/image height */ -#define MAX_HEIGHT 4096 +#ifndef MAX_HEIGHT +# define MAX_HEIGHT 4096 +#endif /** Maxmimum size for CVA. May be overridden by the drivers. */ #define MAX_ARRAY_LOCK_SIZE 3000 |