diff options
author | Francisco Jerez <[email protected]> | 2016-09-07 13:02:55 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-09-14 14:50:54 -0700 |
commit | d6b60934aaf2d525f7d1072c0c21af8468254647 (patch) | |
tree | 7b8fe6584aed8d39f4bcc1f010ae8262a245d897 /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | 31a40202b8bdf8bb65d33862144a03610fd57e3f (diff) |
i965/fs: Return more accurate read size for LINTERP from fs_inst::size_read.
The LINTERP virtual instruction only reads three scalar components
from the first 16B of the second source, we can now teach size_read()
about it since its return value is represented with byte granularity.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index e18aa72bd2c..60907cd20b9 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -848,7 +848,7 @@ fs_inst::size_read(int arg) const case FS_OPCODE_LINTERP: if (arg == 1) - return REG_SIZE; + return 16; break; case SHADER_OPCODE_LOAD_PAYLOAD: |