summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-14 11:22:37 -0600
committerBrian Paul <[email protected]>2009-08-14 11:22:37 -0600
commite691b0e533c552dc5884192a9a2b9347f704479d (patch)
tree17ea863103965c4cabf79085406f973b1fded274 /src
parent3ffaa11f888ced2ae5da7e794a57f20dcc7a3dfc (diff)
Allow external settings of MAX_WIDTH/HEIGHT.
Conditionalize MAX_WIDTH / MAX_HEIGHT defines so that users can set them via CFLAGS. (cherry picked from master, commit 66bc17e80e22d8f205cc02171b1c266feab6631f)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/config.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index f7acd2f08e0..114119006a3 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