i965/vec4: fix scratch writes for 64bit data
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 28 Jun 2016 10:03:09 +0000 (12:03 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:51 +0000 (11:26 +0100)
commit52fb22b64678b1dc855cffc9998103b31890a0c5
tree65d8b23f65a3e8599d8c3f25a3dbbd90440d7612
parentdcc36f8b29ebc15ac4a8077e0902bf87c1de581c
i965/vec4: fix scratch writes for 64bit data

Mostly the same stuff as usual: we ned to shuffle the data before we
write and we need to emit two 32-bit write messages (with appropriate
32-bit writemask channels set) for a full dvec4 scratch write.

v2: use byte_offset() instead of offset().

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