diff options
author | Paul Berry <[email protected]> | 2011-09-13 10:58:47 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-09-23 15:32:46 -0700 |
commit | 604173fb1c4c7705681e77bbd862b9f953dbc6d4 (patch) | |
tree | 55873ec8a5cbf653652d44311b92b4c1e57daaae | |
parent | 2a6d43204024bc47df9bf5f7803d62d4d9580ab5 (diff) |
i965: Increase MaxClipPlanes to 8 for gen6+.
This is necessary for GLSL 1.30 compliance.
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index caac24afc90..5625a787b68 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -794,6 +794,9 @@ intelInitContext(struct intel_context *intel, ctx->Const.MaxSamples = 1.0; + if (intel->gen >= 6) + ctx->Const.MaxClipPlanes = 8; + /* reinitialize the context point state. * It depend on constants in __struct gl_contextRec::Const */ |