[Mesa-dev] [PATCH 54/95] i965/vec4: fix regs_read() for doubles

Iago Toral Quiroga itoral at igalia.com
Tue Jul 19 10:40:51 UTC 2016


---
 src/mesa/drivers/dri/i965/brw_vec4.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 9400baa..a366548 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -221,6 +221,9 @@ vec4_instruction::regs_read(unsigned arg) const
       return arg == 1 ? mlen : 1;
 
    default:
+      if (type_sz(src[arg].type) == 8 && this->exec_size > 4 &&
+          !is_uniform(src[arg]))
+         return 2;
       return 1;
    }
 }
-- 
2.7.4



More information about the mesa-dev mailing list