aboutsummaryrefslogtreecommitdiffstats
path: root/emulator
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-09-17 17:14:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-09-17 17:14:55 +0000
commit9746f34af612629b65507e57f667d05e729fa057 (patch)
tree9b7e02bd0739d3e7bef1ae6f644d0b4817266450 /emulator
parentcd47f4fdea2100f859ef8a94131bdc6530cfbe8d (diff)
parent077e8cd949c1fcfa48413df3f0a4ca6bdb8ca944 (diff)
downloadsdk-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.cpp9
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;
}