Skip to content

Commit 708fd1a

Browse files
stephenhinesAndroid (Google) Code Review
authored andcommitted
Merge "Make launchtestxlw use constant."
2 parents 5d35f10 + 74ff610 commit 708fd1a

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)