[Mesa-dev] [PATCH 2/2] i965: Fix piglit glsl-1.30/texel-offset-limits.
Kenneth Graunke
kenneth at whitecape.org
Sat Oct 15 21:15:17 PDT 2011
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().
More information about the mesa-dev
mailing list