summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vs.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-09-23 21:27:00 -0700
committerPaul Berry <stereotype441@gmail.com>2011-09-28 11:38:03 -0700
commit7e2b23ba85a89282565d9375b0a885cc48e66c82 (patch)
treeee16696b4aaf88aab0268b1bf2b47362a60e02fc /src/mesa/drivers/dri/i965/brw_vs.h
parenta864b82a04efd0642f5b2a9489b3c20dac46551f (diff)
downloadexternal_mesa3d-7e2b23ba85a89282565d9375b0a885cc48e66c82.zip
external_mesa3d-7e2b23ba85a89282565d9375b0a885cc48e66c82.tar.gz
external_mesa3d-7e2b23ba85a89282565d9375b0a885cc48e66c82.tar.bz2
i965: Fix a hardcoded user clip plane count.
Now that i965 supports 8 clip planes instead of 6, the size of the brw_vs_compile::userplane array needs to be increased to 8. Changed the array size to MAX_CLIP_PLANES so that if the number changes again in the future, this array size won't be missed. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index 7224423..4b3103f 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -81,7 +81,7 @@ struct brw_vs_compile {
struct brw_reg reg;
} output_regs[128];
- struct brw_reg userplane[6];
+ struct brw_reg userplane[MAX_CLIP_PLANES];
/** we may need up to 3 constants per instruction (if use_const_buffer) */
struct {