[Mesa-dev] [PATCH v2 040/103] i965/vec4: fix regs_read() for doubles

Iago Toral Quiroga itoral at igalia.com
Tue Oct 11 09:01:44 UTC 2016


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

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 75a8473..2bde628 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -228,8 +228,8 @@ vec4_instruction::size_read(unsigned arg) const
    case UNIFORM:
       return 4 * type_sz(src[arg].type);
    default:
-      /* XXX - Represent actual execution size and vertical stride. */
-      return 8 * type_sz(src[arg].type);
+      /* XXX - Represent actual vertical stride. */
+      return exec_size * type_sz(src[arg].type);
    }
 }
 
-- 
2.7.4



More information about the mesa-dev mailing list