title: api 20+ only allows simple 1d allocations to be used with bind renderscript
body: <p>I develop an application which goal is to calculate the mean of the grayscale on each column. Here is my code:</p>
  
  <pre><code>mInputAllocation=Allocation.createFromBitmap(mRs, mBitmapIn.MipMapControl.MIPMAP_NONE, allocation.USAGE_SCRIPT);
  mOutputAllocation=Allocation.createSized(mRs, Element.I32, Allocation.USAGE_SCRIPT);
  mScript.bind_gInPixels(mInputAllocation);
  mScript.bind_gResult(mOutputAllocation);
  mScript.invoke_filter();
  </code></pre>
  
  <p>And in myscript.rs I have:</p>
  
  <pre><code>int sum;
  int32_t *gResult;
  const uchar4 *gInPIxels;
  void root(const uint32_t *v_in, int_32 *v_out, uint32_t x, uint32_t y){
  for(int i=0;i&lt;mImageWidth;i++){
  sum=sum+gray;}
  gResult[*v_out]=sum;}
  
  void filter(){
  rsForEach(gScript, gIn, gOut);}
  </code></pre>
  
  <p>I got this exception while executing the application on my phone:
  API20+ only allows simple 1D allocations to be used with bind.</p>