i965/vec4: fix scratch offset for 64bit data
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 17 Feb 2016 09:05:02 +0000 (10:05 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:51 +0000 (11:26 +0100)
commite4d9ab609f217bde95722e76a98d646890c9abc9
treeb90bfacc9ee2f2630d2767b46ed8bab880244423
parent07bc6a35d3d6d94d45b81bd10002f0e420d855c2
i965/vec4: fix scratch offset for 64bit data

A vec4 is 16 bytes and a dvec4 is 32 bytes so for doubles we have
to multiply the reladdr by 2. The reg_offset part is in units of 16
bytes and is used to select the low/high 16-byte chunk of a full
dvec4, so we don't want to multiply that part of the address.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp