1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-01 19:29:16 +01:00

[dxso] Fix RT mask for SM1

This commit is contained in:
Robin Kertels 2023-05-26 00:41:07 +02:00 committed by Joshie
parent e0654977c9
commit 4b10846008

View File

@ -38,10 +38,14 @@ namespace dxvk {
m_constants = compiler->constants();
m_maxDefinedConst = compiler->maxDefinedConstant();
m_usedSamplers = compiler->usedSamplers();
m_usedRTs = compiler->usedRTs();
compiler->finalize();
// SM 1 doesn't have explicit output registers and uses R0 instead.
// The shader compiler emits the C0 write in finalize, so we have to get the rt mask
// after that.
m_usedRTs = compiler->usedRTs();
return compiler->compile();
}