Skip to content

Commit 74ff610

Browse files
committed
Make launchtestxlw use constant.
Change-Id: I0f9cd3cc2f042a9471ecf1df9e4764cad8ad5ef6
1 parent bc82c34 commit 74ff610

File tree

1 file changed

+2
-2
lines changed
  • tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf

1 file changed

+2
-2
lines changed

tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/launchtestxlw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ uint8_t *buf;
2222

2323
void root(uchar *v_out, uint32_t x) {
2424
uint8_t *p = buf;
25-
p += x * 2048;
26-
for (int i=0; i<2048; i++) {
25+
p += x * dim;
26+
for (int i=0; i<dim; i++) {
2727
p[i] = 1;
2828
}
2929
}

0 commit comments

Comments
 (0)