vkd3d-shader/tpf: Emit constant values inline.
How much of an heresy is this thing?
It has a negative diff count, you can't approve this! Also, it causes the HLSL compiler to emit slightly shorter and more readable TPF code. And using fewer registers.
I guess something similar should be doable for D3DBC too, though it requires some previous refactoring to have a single place where to intercept constant registers susceptible to be inlined.
Merge request reports
Activity
How much of an heresy is this thing?
It's not the way we eventually want to solve this, but I don't hate it enough to reject it.
That said, there are plenty of similar patches that can be written, and I don't want to spend a long time writing them all, instead of fixing this the right way. So I'll accept this, but I don't want to accept too many similar patches...
mentioned in merge request !211 (merged)
added 31 commits
-
be4aac00...a2e85a8a - 27 commits from branch
wine:master
- 4ecd3af2 - vkd3d-shader/tpf: Use a semicolon to separate statements.
- a7de09d4 - vkd3d-shader/tpf: Move sm4_src_from_constant_value() above.
- a471c556 - vkd3d-shader/tpf: Emit constant values inline.
- 7c360330 - vkd3d-shader/tpf: Do not emit HLSL_IR_CONSTANT instructions.
Toggle commit list-
be4aac00...a2e85a8a - 27 commits from branch