minigbm: fix renderscipt allocation

A few CTS tests are failing due to incompatible usage flags.
Specifically, these combinations are passed in:

{ format: HAL_PIXEL_FORMAT_YCbCr_420_888,
  HAL flags: GRALLOC_USAGE_RENDERSCRIPT |
	     GRALLOC_USAGE_SW_READ_OFTEN |
	     GRALLOC_USAGE_SW_WRITE_OFTEN }

Let's set the renderscript flag to BO_USE_LINEAR since in our
case renderscript code is executed on the CPU.
Change drivers to make sure linear flags are available.

BUG=b:34422476
TEST=

run cts --package android.security
run cts -m CtsRenderscriptTestCases --skip-device-info
run cts --package android.widget

don't crash due to createGraphicBuffer failures.

Change-Id: I47a97118ae5b6a732e6d5c1f090aa7c3a7cc95a5
Reviewed-on: https://chromium-review.googlesource.com/441915
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
2 files changed