Enable branch forward operation in execute buffer.
This commit is contained in:
parent
4ea9589981
commit
0955adfc2e
|
@ -595,11 +595,15 @@ static void execute(IDirect3DExecuteBufferImpl *This,
|
||||||
|
|
||||||
if ((This->data.dsStatus.dwStatus & ci->dwMask) == ci->dwValue) {
|
if ((This->data.dsStatus.dwStatus & ci->dwMask) == ci->dwValue) {
|
||||||
if (!ci->bNegate) {
|
if (!ci->bNegate) {
|
||||||
TRACE(" Should branch to %ld\n", ci->dwOffset);
|
TRACE(" Branch to %ld\n", ci->dwOffset);
|
||||||
|
instr = (char*)current + ci->dwOffset;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ci->bNegate) {
|
if (ci->bNegate) {
|
||||||
TRACE(" Should branch to %ld\n", ci->dwOffset);
|
TRACE(" Branch to %ld\n", ci->dwOffset);
|
||||||
|
instr = (char*)current + ci->dwOffset;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -627,7 +631,7 @@ static void execute(IDirect3DExecuteBufferImpl *This,
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ERR("Unhandled OpCode !!!\n");
|
ERR("Unhandled OpCode %d !!!\n",current->bOpcode);
|
||||||
/* Try to save ... */
|
/* Try to save ... */
|
||||||
instr += count * size;
|
instr += count * size;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue