OSDN Git Service

Support bitcasts between scalars and short vectors.
authorNicolas Capens <capn@google.com>
Tue, 25 Jul 2017 17:56:46 +0000 (13:56 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 26 Jul 2017 19:28:11 +0000 (19:28 +0000)
commit2d8c370e1f949b9ddf7249179fa5a6041b4a050d
tree294b4d220b3c5d6f10ac0c99683387e024aaf93a
parent8772202b4bf74c5e8e00da32edc74e147d439f49
Support bitcasts between scalars and short vectors.

Subzero only supports 128-bit vectors currently, but we need to support
bitcasting between scalars and (emulated) short vectors of the same
size. Subzero implicitly supports it on x86 by using movd instructions,
but on ARM we have to emulate it in Reactor until support for it is
added in Subzero.

Bug swiftshader:48

Change-Id: I95accbc3665815a46dac8e52ce30939ac64aaf44
Reviewed-on: https://swiftshader-review.googlesource.com/10929
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Reactor/SubzeroReactor.cpp
src/Shader/SamplerCore.cpp