summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC_Lib.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-02-21 20:13:12 -0800
committerStephen Hines <srhines@google.com>2012-02-22 15:24:29 -0800
commit473a2048d3c54fe38b6f9a58457645c9c472b238 (patch)
tree04cff2992886e0352f4ffd7a60086f52dd0847bc /libs/rs/rsScriptC_Lib.cpp
parent408ff24bacf432ef26ba78ad2b8273a284798de1 (diff)
Support running ForEach on non-root functions.
BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
Diffstat (limited to 'libs/rs/rsScriptC_Lib.cpp')
-rw-r--r--libs/rs/rsScriptC_Lib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsScriptC_Lib.cpp b/libs/rs/rsScriptC_Lib.cpp
index 183e207c7470..a5a0fae9bf57 100644
--- a/libs/rs/rsScriptC_Lib.cpp
+++ b/libs/rs/rsScriptC_Lib.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 The Android Open Source Project
+ * Copyright (C) 2009-2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -157,7 +157,7 @@ void rsrForEach(Context *rsc, Script *sc,
Allocation *in, Allocation *out,
const void *usr, uint32_t usrBytes,
const RsScriptCall *call) {
- target->runForEach(rsc, in, out, usr, usrBytes, call);
+ target->runForEach(rsc, /* root slot */ 0, in, out, usr, usrBytes, call);
}
void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) {