Mesa (master): i965/fs: fix regs_read() for LINTERP

Connor Abbott cwabbott0 at kemper.freedesktop.org
Fri Jul 17 18:16:20 UTC 2015


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

Author: Connor Abbott <connor.w.abbott at intel.com>
Date:   Wed Jul  1 09:58:47 2015 -0700

i965/fs: fix regs_read() for LINTERP

The second source always stays within the same SIMD8 register.

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Connor Abbott <connor.w.abbott at intel.com>

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 2e3eb05..51ef32c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -685,7 +685,8 @@ fs_inst::regs_read(int arg) const
    case FS_OPCODE_LINTERP:
       if (arg == 0)
          return exec_size / 4;
-      break;
+      else
+         return 1;
 
    case FS_OPCODE_PIXEL_X:
    case FS_OPCODE_PIXEL_Y:




More information about the mesa-commit mailing list