From: Connor Abbott Date: Wed, 1 Jul 2015 16:58:47 +0000 (-0700) Subject: i965/fs: fix regs_read() for LINTERP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f344b908a95440d215f29c0b05b8ea8dba2839e;p=mesa.git 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 --- 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: