From 9f344b908a95440d215f29c0b05b8ea8dba2839e Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 1 Jul 2015 09:58:47 -0700 Subject: [PATCH] i965/fs: fix regs_read() for LINTERP The second source always stays within the same SIMD8 register. Reviewed-by: Jordan Justen Reviewed-by: Matt Turner Signed-off-by: Connor Abbott --- 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 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: -- 2.30.2