On 19 September 2011 10:53, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 09/14/2011 12:49 PM, Paul Berry wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This will allow drivers to increase ctx->Const.MaxClipPlanes to 8,<br>
which is required for GLSL-1.30 compliance.<br>
<br>
No driver behavior should be affected. However, many data structures<br>
use MAX_CLIP_PLANES as an array size, so these arrays will get<br>
slightly larger.<br>
---<br>
src/mesa/main/config.h | 2 +-<br>
1 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h<br>
index 91aef90..cc288da 100644<br>
--- a/src/mesa/main/config.h<br>
+++ b/src/mesa/main/config.h<br>
@@ -62,7 +62,7 @@<br>
#define MAX_LIGHTS 8<br>
<br>
/** Maximum user-defined clipping planes */<br>
-#define MAX_CLIP_PLANES 6<br>
+#define MAX_CLIP_PLANES 8<br>
<br>
/** Maximum pixel map lookup table size */<br>
#define MAX_PIXEL_MAP_TABLE 256<br>
</blockquote>
<br></div></div>
I'd prefer this:<br>
<br>
/**<br>
* Maximum number of user-defined clipping planes supported by any<br>
* driver in Mesa. This is used to size stack allocated arrays.<br>
*/</blockquote><div><br>Sounds reasonable. I think I'm going to shorten "This is used to size stack allocated arrays" to "This is used to size arrays", since some of the arrays that are sized by this constant are heap-allocated (e.g. EyeUserPlane in gl_transform_attrib).<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
#define MAX_CLIP_PLANES 8<br>
<br></div>
Otherwise, patches 1, 2, 4, and 5 are<br>
Reviewed-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>><br>
</blockquote></div><br>Awesome, thanks.<br>