projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a6d432
)
i965: Increase MaxClipPlanes to 8 for gen6+.
author
Paul Berry
<stereotype441@gmail.com>
Tue, 13 Sep 2011 17:58:47 +0000
(10:58 -0700)
committer
Paul Berry
<stereotype441@gmail.com>
Fri, 23 Sep 2011 22:32:46 +0000
(15:32 -0700)
This is necessary for GLSL 1.30 compliance.
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_context.c
b/src/mesa/drivers/dri/intel/intel_context.c
index caac24afc9087e167e1d9ab8df3eb91f466956f2..5625a787b680c13723ec032559c5d7f36c5f1d38 100644
(file)
--- 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
*/