Handle a few declaration opcodes that had gotten missed

This commit is contained in:
baldurk
2014-08-06 22:35:47 +01:00
parent d3f867d5d3
commit 36a67611e5
2 changed files with 8 additions and 4 deletions
@@ -1149,7 +1149,7 @@ bool DXBCFile::ExtractDecl(uint32_t *&tokenStream, ASMDecl &retDecl)
}
else if(op == OPCODE_DCL_INPUT_SIV || op == OPCODE_DCL_INPUT_SGV ||
op == OPCODE_DCL_INPUT_PS_SIV || op == OPCODE_DCL_INPUT_PS_SGV ||
op == OPCODE_DCL_OUTPUT_SIV)
op == OPCODE_DCL_OUTPUT_SIV || op == OPCODE_DCL_OUTPUT_SGV)
{
bool ret = ExtractOperand(tokenStream, retDecl.operand);
RDCASSERT(ret);
@@ -1503,9 +1503,11 @@ bool DXBCFile::ExtractDecl(uint32_t *&tokenStream, ASMDecl &retDecl)
retDecl.str += retDecl.operand.toString(false);
}
else if(op == OPCODE_DCL_HS_FORK_PHASE_INSTANCE_COUNT)
else if(op == OPCODE_DCL_HS_FORK_PHASE_INSTANCE_COUNT ||
op == OPCODE_DCL_HS_JOIN_PHASE_INSTANCE_COUNT ||
op == OPCODE_DCL_GS_INSTANCE_COUNT)
{
retDecl.forkInstanceCount = tokenStream[0];
retDecl.instanceCount = tokenStream[0];
tokenStream++;
retDecl.str += " ";
@@ -791,7 +791,9 @@ struct ASMDecl
PrimitiveTopology outTopology;
// OPCODE_DCL_HS_FORK_PHASE_INSTANCE_COUNT
uint32_t forkInstanceCount;
// OPCODE_DCL_HS_JOIN_PHASE_INSTANCE_COUNT
// OPCODE_DCL_GS_INSTANCE_COUNT
uint32_t instanceCount;
// OPCODE_DCL_INDEX_RANGE
uint32_t indexRange;