[Mesa-dev] [PATCH 13/57] i965/fs: Return more accurate read size for LINTERP from fs_inst::size_read.
Francisco Jerez
currojerez at riseup.net
Thu Sep 8 01:48:40 UTC 2016
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.
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 7473f07..18ae959 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:
--
2.9.0
More information about the mesa-dev
mailing list