Hans-Kristian Arntzen
711300baed
MSL: Do not emit swizzled writes in packing fixups.
...
Similar to scalar access chain fix, this causes a read-modify-write on
memory we're not supposed to write to.
2020-07-06 10:03:46 +02:00
Hans-Kristian Arntzen
fa5b206d97
MSL: Workaround broken vector -> scalar access chain in MSL.
...
On MSL, the compiler refuses to allow access chains into a normal vector type.
What happens in practice instead is a read-modify-write where a vector type is
loaded, modified and written back.
The workaround is to convert a vector into a pointer-to-scalar before
the access chain continues to add the scalar index.
2020-07-06 10:03:44 +02:00
Lukas Hermanns
c3d6022956
Update for pull request #1162 rev. 1
2019-09-24 18:13:04 -04:00
Lukas Hermanns
7ad0a84778
Updates for pull request #1162
2019-09-24 14:35:25 -04:00
Lukas Hermanns
cb3ecb9e1b
Updated reference Metal shaders.
2019-09-17 15:11:19 -04:00
Thomas Roughton
91b2f34a3d
Update tests to account for all non-entry-point functions being inlined
2019-08-30 09:39:06 +12:00
Hans-Kristian Arntzen
609d087f8f
Only transpose unpacked expressions.
2019-07-22 16:06:09 +02:00
Hans-Kristian Arntzen
6057ffcbb1
Deal correctly with complete stores to row_major matrices.
2019-07-22 15:49:17 +02:00
Hans-Kristian Arntzen
19f5cd3e90
Declare correct matrix type when unpacking.
2019-07-22 13:25:45 +02:00
Hans-Kristian Arntzen
745a2f7b0e
Deal with swizzled stores to std140 matrices.
2019-07-22 13:05:23 +02:00
Hans-Kristian Arntzen
180a6b38c5
Fix some row-major column store cases.
2019-07-22 12:56:14 +02:00
Hans-Kristian Arntzen
4ab2829cf6
Fix more stray parens.
2019-07-22 12:13:07 +02:00
Hans-Kristian Arntzen
14afb968dd
Correctly unpack row-major matrices when storing to LHS.
2019-07-22 12:03:12 +02:00
Hans-Kristian Arntzen
172185016f
MSL: Add std140 and scalar matrix layouts.
2019-07-22 11:30:03 +02:00