i915: set fogcoord to (f,0,0,1). fix #10788 issue on 915.
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 15 Feb 2008 07:20:45 +0000 (15:20 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 15 Feb 2008 07:20:45 +0000 (15:20 +0800)
src/mesa/drivers/dri/i915/i915_fragprog.c

index b475fb632f825ea802030ffa9057361fda5908f5..1876218ca0253b304ad388c2cc49f2654d8d4aec 100644 (file)
@@ -107,7 +107,7 @@ src_vector(struct i915_fragment_program *p,
          break;
       case FRAG_ATTRIB_FOGC:
          src = i915_emit_decl(p, REG_TYPE_T, T_FOG_W, D0_CHANNEL_W);
-         src = swizzle(src, W, W, W, W);
+         src = swizzle(src, W, ZERO, ZERO, ONE);
          break;
       case FRAG_ATTRIB_TEX0:
       case FRAG_ATTRIB_TEX1: