summaryrefslogtreecommitdiff
path: root/cros_gralloc
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-08-03 18:34:05 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-05 22:07:49 -0700
commit43ba07f7d43e94b5f971f89835972ead7a1ada72 (patch)
tree578019b8bb42f49047cc134b3e3cb6da598134b5 /cros_gralloc
parent18578eda90ee2b4a46aca5e8fc9c8b9cd4367a12 (diff)
minigbm: add the BO_USE_RENDERSCRIPT flag back in
Previously, we mapped BO_USE_RENDERSCRIPT to BO_USE_LINEAR, which made sense at the moment. However, we know have a case where we need to special things with renderscript buffers on ARM boards. Let's add back in the flag so we can differentiate between normal linear buffers and renderscript buffers at map and unmap time. BUG=b:38097499 TEST=run cts -m CtsViewTestCases -t android.view.cts.SurfaceViewSyncTests passes on 9776.0.0 veyron_minnie Change-Id: I7f1ee76735280ab6495a2d4af332cce5bc1c1727 Reviewed-on: https://chromium-review.googlesource.com/602735 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'cros_gralloc')
-rw-r--r--cros_gralloc/gralloc0/gralloc0.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/cros_gralloc/gralloc0/gralloc0.cc b/cros_gralloc/gralloc0/gralloc0.cc
index e62c670..a5c8181 100644
--- a/cros_gralloc/gralloc0/gralloc0.cc
+++ b/cros_gralloc/gralloc0/gralloc0.cc
@@ -73,8 +73,7 @@ static int64_t gralloc0_convert_flags(int flags)
if (flags & GRALLOC_USAGE_HW_CAMERA_READ)
usage |= BO_USE_CAMERA_READ;
if (flags & GRALLOC_USAGE_RENDERSCRIPT)
- /* We use CPU for compute. */
- usage |= BO_USE_LINEAR;
+ usage |= BO_USE_RENDERSCRIPT;
return usage;
}