From f79547840a1951dbf82c7b6629935c6e89020e27 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 30 May 2016 13:20:31 +0200 Subject: [PATCH] i965/vec4: fix regs_read() for doubles Reviewed-by: Matt Turner --- 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 6f0f3475223..65438f702d7 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.30.2