i965/vec4: Import helpers to convert vectors into arrays and back.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 28 Apr 2015 23:12:27 +0000 (02:12 +0300)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:22 +0000 (08:39 +0200)
commitd5503ce39ffb056de8d3c9c78870aa7f1b3432d2
tree8e2cfb799233785ed33c8956437e8855e9b28ec7
parent402cb7ce13da9319c96b585c1f39810a3719fae8
i965/vec4: Import helpers to convert vectors into arrays and back.

These functions handle the conversion of a vec4 into the form expected
by the dataport unit in message and message return payloads.  The
conversion is not always trivial because some messages don't support
SIMD4x2 for some generations, in which case a strided copy may be
necessary.

v2: Split from the FS implementation.
v3: Rewrite to avoid evil array_reg, emit_collect and emit_zip.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_vec4_surface_builder.cpp [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_vec4_surface_builder.h [new file with mode: 0644]