Revert "[dxbc] Handle dead code in shader binaries"

Apparently this regressed something, but the reporter who asked
for this fix in the first place did not specify what, so let's
just revert this and break the whole thing again until we get
something to actually work with.

This reverts commit 5115d80d51.
This commit is contained in:
Philip Rebohle 2023-01-10 20:35:51 +01:00
parent 8052347a22
commit 8011a40843
2 changed files with 0 additions and 12 deletions

View File

@ -72,17 +72,6 @@ namespace dxvk {
m_lastOp = m_currOp;
m_currOp = ins.op;
if (!m_insideFunction
&& ins.opClass != DxbcInstClass::CustomData
&& ins.opClass != DxbcInstClass::Declaration
&& ins.opClass != DxbcInstClass::HullShaderPhase
&& ins.opClass != DxbcInstClass::NoOperation
&& ins.op != DxbcOpcode::Label) {
if (!std::exchange(m_hasDeadCode, true))
Logger::warn("DxbcCompiler: Dead code detected");
return;
}
switch (ins.opClass) {
case DxbcInstClass::Declaration:
return this->emitDcl(ins);

View File

@ -531,7 +531,6 @@ namespace dxvk {
//////////////////////
// Global state stuff
bool m_precise = true;
bool m_hasDeadCode = false;
DxbcOpcode m_lastOp = DxbcOpcode::Nop;
DxbcOpcode m_currOp = DxbcOpcode::Nop;