From 7e2b23ba85a89282565d9375b0a885cc48e66c82 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 23 Sep 2011 21:27:00 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_vs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index 722442384dc..4b3103ff1b6 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 { -- 2.30.2