summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-07-01 09:58:47 -0700
committerConnor Abbott <[email protected]>2015-07-17 10:10:39 -0700
commit9f344b908a95440d215f29c0b05b8ea8dba2839e (patch)
treeb50ad67372e41b751c3e4b0864c01217a05d8f5d /src/mesa
parenteaf799ddff9f2583d6dee5a0db36fa0a1162fde6 (diff)
i965/fs: fix regs_read() for LINTERP
The second source always stays within the same SIMD8 register. Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 2e3eb05b796..51ef32c1b6a 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: