mirror of https://github.com/doitsujin/dxvk
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:
parent
8052347a22
commit
8011a40843
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue