android-renderscript

Renderscript fails on GPU enabled driver if USAGE_SHARED

对着背影说爱祢 提交于 2019-12-04 03:21:41
问题 We are using renderscript for audio dsp processing. It is simple and improves performance significantly for our use-case. But we run into an annoying issue with USAGE_SHARED on devices that have custom driver with GPU execution enabled. As you may know, USAGE_SHARED flag makes the renderscript allocation to reuse the given memory without having to create a copy of it. As a consequence, it not only saves memory, in our case, improves performance to desired level. The following code with USAGE