Massively disgusting and incomplete shader translator.

This commit is contained in:
Ben Vanik
2013-10-12 22:14:23 -07:00
parent 0ef278325f
commit 96a857e892
10 changed files with 1145 additions and 60 deletions

View File

@@ -55,15 +55,12 @@ void NopGraphicsDriver::SetShader(
type, p, length);
// Disassemble.
char* source = shader->Disassemble();
const char* source = shader->disasm_src();
if (!source) {
source = "<failed to disassemble>";
}
XELOGGPU("NOP: set shader %d at %0.8X (%db):\n%s",
type, address, length, source);
if (source) {
xe_free(source);
}
}
void NopGraphicsDriver::DrawIndexAuto(