http://bugs.winehq.org/show_bug.cgi?id=34416
--- Comment #7 from Rico kgbricola@web.de 2013-09-14 13:18:17 CDT --- Created attachment 45957 --> http://bugs.winehq.org/attachment.cgi?id=45957 clamp regcount for D3DXPC_MATRIX_COLUMNS.
After some discussion and debugging, the result is the following:
The issue is that currently the regcount in the ID3DXConstantTable is not clamped for D3DXPC_MATRIX_COLUMNS. Thus some values for the next shader variable may be overwritten in some cases.
The patch as is works, but it needs a nice test case...