i965/fs/gen7: Fix fatal typo in unpackHalf2x16
authorChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:48:40 +0000 (21:48 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:51:06 +0000 (21:51 -0800)
s/src/src_w/

That little typo, which sneaked into v4 of the previous patch, generates
incorrect fs code.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_fs_emit.cpp

index 27c5302..d9ed27c 100644 (file)
@@ -1006,7 +1006,7 @@ fs_generator::generate_unpack_half_2x16_split(fs_inst *inst,
    assert(inst->opcode == FS_OPCODE_UNPACK_HALF_2x16_SPLIT_X ||
           inst->opcode == FS_OPCODE_UNPACK_HALF_2x16_SPLIT_Y);
    if (inst->opcode == FS_OPCODE_UNPACK_HALF_2x16_SPLIT_Y)
-      src.subnr += 2;
+      src_w.subnr += 2;
 
    brw_F16TO32(p, dst, src_w);
 }