diff options
author | David 'Digit' Turner <digit@google.com> | 2014-09-17 17:14:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-09-17 17:14:55 +0000 |
commit | 9746f34af612629b65507e57f667d05e729fa057 (patch) | |
tree | 9b7e02bd0739d3e7bef1ae6f644d0b4817266450 /emulator | |
parent | cd47f4fdea2100f859ef8a94131bdc6530cfbe8d (diff) | |
parent | 077e8cd949c1fcfa48413df3f0a4ca6bdb8ca944 (diff) | |
download | sdk-9746f34af612629b65507e57f667d05e729fa057.zip sdk-9746f34af612629b65507e57f667d05e729fa057.tar.gz sdk-9746f34af612629b65507e57f667d05e729fa057.tar.bz2 |
Merge "emulator/opengl/emgen: Fix debug output of floating point values."
Diffstat (limited to 'emulator')
-rw-r--r-- | emulator/opengl/host/tools/emugen/ApiGen.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/emulator/opengl/host/tools/emugen/ApiGen.cpp b/emulator/opengl/host/tools/emugen/ApiGen.cpp index a92ad39..78c15e4 100644 --- a/emulator/opengl/host/tools/emugen/ApiGen.cpp +++ b/emulator/opengl/host/tools/emugen/ApiGen.cpp @@ -854,19 +854,14 @@ int ApiGen::genDecoderImpl(const std::string &filename) } if (!v->isPointer()) { - if (pass == PASS_FunctionCall) { + if (pass == PASS_FunctionCall || + pass == PASS_DebugPrint) { fprintf(fp, "Unpack<%s,uint%d_t>(ptr + %s)", v->type()->name().c_str(), v->type()->bytes() * 8, varoffset.c_str()); } - if (pass == PASS_DebugPrint) { - fprintf(fp, - "*(uint%d_t *)(ptr + %s)", - v->type()->bytes() * 8, - varoffset.c_str()); - } varoffset += " + " + toString(v->type()->bytes()); continue; } |