Mesa (master): intel: Fix typeos from 3d028024 and 790ff232

Ian Romanick idr at kemper.freedesktop.org
Thu Jan 20 13:51:59 PST 2011


Module: Mesa
Branch: master
Commit: 2fb0aebd4a248d2a0725099cd5646253c30c1dc3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2fb0aebd4a248d2a0725099cd5646253c30c1dc3

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Jan 20 13:51:07 2011 -0800

intel: Fix typeos from 3d028024 and 790ff232

...and remove egg from face.

---

 src/mesa/drivers/dri/i915/i915_context.c |   20 ++++++++++----------
 src/mesa/drivers/dri/i965/brw_context.c  |   10 +++++-----
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c
index 49ad7db..474252b 100644
--- a/src/mesa/drivers/dri/i915/i915_context.c
+++ b/src/mesa/drivers/dri/i915/i915_context.c
@@ -171,16 +171,16 @@ i915CreateContext(int api,
    /* i915 stores all values in single-precision floats.  Values aren't set
     * for other program targets because software is used for those targets.
     */
-   ctx->FragmentProgram.MediumFloat.RangeMin = 127;
-   ctx->FragmentProgram.MediumFloat.RangeMax = 127;
-   ctx->FragmentProgram.MediumFloat.Precision = 23;
-   ctx->FragmentProgram.LowFloat = ctx->FragmentProgram.HighFloat =
-      ctx->FragmentProgram.MediumFloat;
-   ctx->FragmentProgram.MediumInt.RangeMin = 24;
-   ctx->FragmentProgram.MediumInt.RangeMax = 24;
-   ctx->FragmentProgram.MediumInt.Precision = 0;
-   ctx->FragmentProgram.LowInt = ctx->FragmentProgram.HighInt =
-      ctx->FragmentProgram.MediumInt;
+   ctx->Const.FragmentProgram.MediumFloat.RangeMin = 127;
+   ctx->Const.FragmentProgram.MediumFloat.RangeMax = 127;
+   ctx->Const.FragmentProgram.MediumFloat.Precision = 23;
+   ctx->Const.FragmentProgram.LowFloat = ctx->Const.FragmentProgram.HighFloat =
+      ctx->Const.FragmentProgram.MediumFloat;
+   ctx->Const.FragmentProgram.MediumInt.RangeMin = 24;
+   ctx->Const.FragmentProgram.MediumInt.RangeMax = 24;
+   ctx->Const.FragmentProgram.MediumInt.Precision = 0;
+   ctx->Const.FragmentProgram.LowInt = ctx->Const.FragmentProgram.HighInt =
+      ctx->Const.FragmentProgram.MediumInt;
 
    ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
 
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index d3b61ab..9483ec6 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -154,11 +154,11 @@ GLboolean brwCreateContext( int api,
    /* Fragment shaders use real, 32-bit twos-complement integers for all
     * integer types.
     */
-   ctx->FragmentProgram.LowInt.RangeMin = 31;
-   ctx->FragmentProgram.LowInt.RangeMax = 30;
-   ctx->FragmentProgram.LowInt.Precision = 0;
-   ctx->FragmentProgram.HighInt = ctx->FragmentProgram.MediumInt
-      = ctx->FragmentProgram.LowInt;
+   ctx->Const.FragmentProgram.LowInt.RangeMin = 31;
+   ctx->Const.FragmentProgram.LowInt.RangeMax = 30;
+   ctx->Const.FragmentProgram.LowInt.Precision = 0;
+   ctx->Const.FragmentProgram.HighInt = ctx->Const.FragmentProgram.MediumInt
+      = ctx->Const.FragmentProgram.LowInt;
 
    /* Gen6 converts quads to polygon in beginning of 3D pipeline,
       but we're not sure how it's actually done for vertex order,



More information about the mesa-commit mailing list