src/mesa/drivers/dri/i965/brw_context.c | 7 +++++-- src/mesa/drivers/dri/i965/brw_vs.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index efe850b..e443d77 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -134,8 +134,11 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis, ctx->Const.Max3DTextureLevels = 9; ctx->Const.MaxCubeTextureLevels = 12; ctx->Const.MaxTextureRectSize = (1<<11); - -/* ctx->Const.MaxNativeVertexProgramTemps = 32; */ + + ctx->Const.VertexProgram.MaxParameters = 256; + ctx->Const.VertexProgram.MaxNativeParameters = 256; + ctx->Const.VertexProgram.MaxEnvParams = 256; + ctx->Const.VertexProgram.MaxLocalParams = 256; brw_init_attribs( brw ); brw_init_metaops( brw ); diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index 41a33ff..4992424 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.h +++ b/src/mesa/drivers/dri/i965/brw_vs.h @@ -65,7 +65,7 @@ struct brw_vs_compile { struct brw_reg r0; struct brw_reg r1; - struct brw_reg regs[PROGRAM_ADDRESS+1][128]; + struct brw_reg regs[PROGRAM_ADDRESS+1][256]; struct brw_reg tmp; struct brw_reg stack;