projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ffaa11
)
Allow external settings of MAX_WIDTH/HEIGHT.
author
Brian Paul
<brianp@vmware.com>
Fri, 14 Aug 2009 17:22:37 +0000
(11:22 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 14 Aug 2009 17:22:37 +0000
(11:22 -0600)
Conditionalize MAX_WIDTH / MAX_HEIGHT defines so that users can
set them via CFLAGS.
(cherry picked from master, commit
66bc17e80e22d8f205cc02171b1c266feab6631f
)
src/mesa/main/config.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/config.h
b/src/mesa/main/config.h
index f7acd2f08e0b87b644fd6492deb74cdfa65ae7e3..114119006a31bb22f555be570d61f3c5d4c8c798 100644
(file)
--- 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