mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-23 19:54:16 +01:00
[d3d8] Fix up swizzle for all opcodes requiring a replicate swizzle
This commit is contained in:
parent
5569274a97
commit
e3f1d4c021
@ -313,8 +313,10 @@ namespace dxvk {
|
|||||||
// Instructions
|
// Instructions
|
||||||
if ((token & VS_BIT_PARAM) == 0) {
|
if ((token & VS_BIT_PARAM) == 0) {
|
||||||
|
|
||||||
// RSQ swizzle fixup
|
// Swizzle fixup for opcodes that require explicit use of a replicate swizzle.
|
||||||
if (opcode == D3DSIO_RSQ) {
|
if (opcode == D3DSIO_RSQ || opcode == D3DSIO_RCP
|
||||||
|
|| opcode == D3DSIO_EXP || opcode == D3DSIO_LOG
|
||||||
|
|| opcode == D3DSIO_EXPP || opcode == D3DSIO_LOGP) {
|
||||||
tokens.push_back(token); // instr
|
tokens.push_back(token); // instr
|
||||||
tokens.push_back(token = pFunction[i++]); // dest
|
tokens.push_back(token = pFunction[i++]); // dest
|
||||||
token = pFunction[i++]; // src0
|
token = pFunction[i++]; // src0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user