Comments (4)
These are the same:
//ORIGINAL
mul r2.xyzw, r0.zzzz, cb1[5].xyzw
r2.x = cb1[5].x * r0.z
r2.y = cb1[5].y * r0.z
r2.z = cb1[5].z * r0.z
r2.w = cb1[5].w * r0.z
mad r2.xyzw, r0.yyyy, cb1[4].xyzw, r2.xyzw
r2.x = cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[4].z * r0.y + cb1[5].z * r0.z
r2.w = cb1[4].w * r0.y + cb1[5].w * r0.z
mad r2.xyzw, r0.xxxx, cb1[6].xyzw, r2.xyzw
r2.x = cb1[6].x * r0.x + cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[6].y * r0.x + cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[6].z * r0.x + cb1[4].z * r0.y + cb1[5].z * r0.z
r2.w = cb1[6].w * r0.x + cb1[4].w * r0.y + cb1[5].w * r0.z
add r2.xyzw, r2.xywz, cb1[7].xywz
r2.x = cb1[7].x + cb1[6].x * r0.x + cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[7].y + cb1[6].y * r0.x + cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[7].w + cb1[6].w * r0.x + cb1[4].w * r0.y + cb1[5].w * r0.z
r2.w = cb1[7].z + cb1[6].z * r0.x + cb1[4].z * r0.y + cb1[5].z * r0.z
//RECOMPILED
mul r2.xyzw, r0.zzzz, cb1[5].xywz
r2.x = cb1[5].x * r0.z
r2.y = cb1[5].y * r0.z
r2.z = cb1[5].w * r0.z
r2.w = cb1[5].z * r0.z
mad r2.xyzw, r0.yyyy, cb1[4].xywz, r2.xyzw
r2.x = cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[4].w * r0.y + cb1[5].w * r0.z
r2.w = cb1[4].z * r0.y + cb1[5].z * r0.z
mad r2.xyzw, r0.xxxx, cb1[6].xywz, r2.xyzw
r2.x = cb1[6].x * r0.x + cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[6].y * r0.x + cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[6].w * r0.x + cb1[4].w * r0.y + cb1[5].w * r0.z
r2.w = cb1[6].z * r0.x + cb1[4].z * r0.y + cb1[5].z * r0.z
add r2.xyzw, r2.xyzw, cb1[7].xywz
r2.x = cb1[7].x + cb1[6].x * r0.x + cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[7].y + cb1[6].y * r0.x + cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[7].w + cb1[6].w * r0.x + cb1[4].w * r0.y + cb1[5].w * r0.z
r2.w = cb1[7].z + cb1[6].z * r0.x + cb1[4].z * r0.y + cb1[5].z * r0.z
//COMPARISON
*Original:
r2.x = cb1[7].x + cb1[6].x * r0.x + cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[7].y + cb1[6].y * r0.x + cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[7].w + cb1[6].w * r0.x + cb1[4].w * r0.y + cb1[5].w * r0.z
r2.w = cb1[7].z + cb1[6].z * r0.x + cb1[4].z * r0.y + cb1[5].z * r0.z
- Re-Compiled
r2.x = cb1[7].x + cb1[6].x * r0.x + cb1[4].x * r0.y + cb1[5].x * r0.z
r2.y = cb1[7].y + cb1[6].y * r0.x + cb1[4].y * r0.y + cb1[5].y * r0.z
r2.z = cb1[7].w + cb1[6].w * r0.x + cb1[4].w * r0.y + cb1[5].w * r0.z
r2.w = cb1[7].z + cb1[6].z * r0.x + cb1[4].z * r0.y + cb1[5].z * r0.z
These are the same.
from 3dmigoto.
Just saw this again recently in Black Ops 3. That swap of of the .xyzw to .xywz I think is an fxc compiler bug, I don't think it's legal.
from 3dmigoto.
Did it actually cause a problem in Black Ops 3? That looks perfectly legal if the compiler decided to store the coordinate in r2.xywz, which it is perfectly legal to do since that is effectively just four independent temporary registers and it can choose whatever order it likes. If it screwed up something in an output register that would be a totally different matter since the order is defined for those.
Regardless, this doesn't look like a 3DMigoto bug - can we close this?
from 3dmigoto.
Closing this due to lack of response.
from 3dmigoto.
Related Issues (20)
- request support for min16f4 instruction HOT 2
- Genshin 3Dmigoto HOT 2
- Getting Resource in 3Dmigoto code using hash HOT 3
- help my lumine is a little broken HOT 14
- BUG: Unwrapped ID3D11Device! (Linux/WINE) HOT 17
- Unable to load 3DMigoto "d3d11.dll" HOT 2
- 3dmigoto no more working in VR with last DCS beta version
- 3dmigoto is crashing/giving me errors for Watch_Dogs HOT 6
- Maybe there's a lack of vertex data HOT 10
- 3DMIGOTO crashing with DCS world OB and WMR (with doc. to reproduce without VR Helmet) HOT 5
- Missing d3d11 static exports like D3D11On12CreateDevice can prevent d3d11.dll from loading. HOT 5
- Apply shaderfixes on specific objects HOT 7
- how can i run this successfully? HOT 2
- How do I tune d3dx.ini for playing? HOT 4
- Incorrect Vertex data in GF2 Elixium HOT 7
- Why use 3Dmigoto in game will lead to GPU usage decrease and result in a huge decrease in FPS. HOT 10
- Nioh 2, Shader Overwrite ambiguous HOT 9
- Crash with SK. Tried everything. Is there anything that I can do? HOT 4
- 3DMigoto Crashes Granblue Fantasy Relink HOT 7
- CommandList Parameters (thoughts) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dmigoto.