Re: [PATCH v2 0/8] MR1684: d3d10/effect: Further improvements to expressions support.
13 Dec
2022
13 Dec
'22
8:44 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3d10/effect.c:
+ unsigned int i; + + *retval = 0.0f; + for (i = 0; i < instr->comp_count; ++i) + *retval += args[0][instr->scalar ? 0 : i] * args[1][i]; +} + +static void pres_dotswiz(float **args, unsigned int n, const struct preshader_instr *instr) +{ + float *retval = args[n]; + unsigned int i; + + *retval = 0.0f; + for (i = 0; i < n; ++i) + *retval += *args[i] * *args[i + n / 2]; +} This doesn't look right to me either.
In any case, I think we want a test for this right away. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1684#note_19578
1099
Age (days ago)
1099
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni (@Mystral)