Mesa (master): i965/fs/gen7: Fix fatal typo in unpackHalf2x16

Chad Versace chadversary at kemper.freedesktop.org
Fri Jan 25 05:51:18 UTC 2013


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

Author: Chad Versace <chad.versace at linux.intel.com>
Date:   Thu Jan 24 21:48:40 2013 -0800

i965/fs/gen7: Fix fatal typo in unpackHalf2x16

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 at linux.intel.com>

---

 src/mesa/drivers/dri/i965/brw_fs_emit.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
index 27c5302..d9ed27c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
@@ -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);
 }




More information about the mesa-commit mailing list