d3dcompiler: Allow hlsl_ir_constant to contain only scalar and vector constants.
commit2ccf1db285310abb86f3712703727ebcbf7f0916
authorZebediah Figura <z.figura12@gmail.com>
Sun, 5 Jul 2020 22:45:34 +0000 (5 17:45 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 8 Jul 2020 05:49:50 +0000 (8 07:49 +0200)
tree7c134363eccbb67288d1dc0cb326ba6f97322861
parent6bae008f5556d22af24a7a81ad7e17bef06f0b62
d3dcompiler: Allow hlsl_ir_constant to contain only scalar and vector constants.

We only emit scalar constants at parse time, and while there's certainly an
advantage to vectorizing constant instructions, there's not much point in
having hlsl_ir_constant hold matrices. Matrices should be lowered to vector
operations first.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3dcompiler_43/d3dcompiler_private.h
dlls/d3dcompiler_43/utils.c