2 Oct
2023
2 Oct
'23
8:14 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3d10/effect.c:
+ 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; + + if (n != 6 && n != 8) + { + WARN("Unexpected argument count %u.\n", n); + return; + } In the same vein, here we could also make sure that component count is 1.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3987#note_47412