From: Iago Toral Quiroga Date: Mon, 30 May 2016 11:20:31 +0000 (+0200) Subject: i965/vec4: fix regs_read() for doubles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f79547840a1951dbf82c7b6629935c6e89020e27;p=mesa.git i965/vec4: fix regs_read() for doubles Reviewed-by: Matt Turner --- 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); } }