[Mesa-dev] [PATCH 2/2] i965: Fix piglit glsl-1.30/texel-offset-limits.

Eric Anholt eric at anholt.net
Sat Oct 15 13:57:59 PDT 2011


---
 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
-- 
1.7.7



More information about the mesa-dev mailing list