On 10/15/2011 01:57 PM, Eric Anholt wrote: > --- > src/mesa/drivers/dri/i965/brw_context.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_context.c > b/src/mesa/drivers/dri/i965/brw_context.c > index dc91852..ec9dc35 100644 > --- a/src/mesa/drivers/dri/i965/brw_context.c > +++ b/src/mesa/drivers/dri/i965/brw_context.c > @@ -164,6 +164,9 @@ GLboolean brwCreateContext( int api, > ctx->Const.FragmentProgram.HighInt = ctx->Const.FragmentProgram.MediumInt > = ctx->Const.FragmentProgram.LowInt; > > + ctx->Const.MaxProgramTexelOffset = 7; > + ctx->Const.MinProgramTexelOffset = -8; > + > /* Gen6 converts quads to polygon in beginning of 3D pipeline, > but we're not sure how it's actually done for vertex order, > that affect provoking vertex decision. Always use last vertex
I don't think this should be necessary... _mesa_init_constants() already contains these exact assignments, and should be called during _mesa_initialize_context(). _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev