summaryrefslogtreecommitdiffstats
path: root/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-12-07 11:07:42 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-12-07 11:07:42 -0800
commit7cee31835de45eaff5922fc8647545d9bd30b567 (patch)
tree660c75a385bfa533471598c8321f836eece8121f /tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs
parent138d870fb7b83bc2af54e87546abb883476298ff (diff)
parent5de7657ac2aea7ae671e2cadb05dcb6207a51404 (diff)
downloadframeworks_base-7cee31835de45eaff5922fc8647545d9bd30b567.zip
frameworks_base-7cee31835de45eaff5922fc8647545d9bd30b567.tar.gz
frameworks_base-7cee31835de45eaff5922fc8647545d9bd30b567.tar.bz2
Merge "Fixing file writing bug"
Diffstat (limited to 'tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs')
-rw-r--r--tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs b/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs
index 2b849a2..cb15449 100644
--- a/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs
+++ b/tests/RenderScriptTests/PerfTest/src/com/android/perftest/rsbench.rs
@@ -45,6 +45,7 @@ VertexShaderInputs *gVSInputs;
typedef struct TestScripts_s {
rs_allocation testData;
rs_allocation testName;
+ rs_allocation debugName;
rs_script testScript;
} TestScripts;
TestScripts *gTestScripts;
@@ -195,7 +196,8 @@ static void benchmark() {
int64_t end = rsUptimeMillis();
float fps = (float)(frameCount) / ((float)(end - start)*0.001f);
- rsDebug("Finishes test ", fps);
+ const char *testName = rsGetElementAt(gTestScripts[benchMode].debugName, 0);
+ rsDebug(testName, fps);
gResultBuffer[benchMode] = fps;
int bufferW = rsAllocationGetDimX(gRenderBufferColor);