i965: fix register region description
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 24 Dec 2010 01:24:08 +0000 (09:24 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 24 Dec 2010 01:51:22 +0000 (09:51 +0800)
This fixes
 brw_eu_emit.c:179: validate_reg: Assertion `width == 1' failed.

src/mesa/drivers/dri/i965/brw_vs_emit.c

index 326bb1e..a64188a 100644 (file)
@@ -1136,7 +1136,7 @@ get_constant(struct brw_vs_compile *c,
    }
 
    /* replicate lower four floats into upper half (to get XYZWXYZW) */
-   const_reg = stride(const_reg, 0, 4, 0);
+   const_reg = stride(const_reg, 0, 4, 1);
    const_reg.subnr = 0;
 
    return const_reg;