GLSL: Improve copy_to_dev and copy_to_host
GLSL: Improve copy_to_dev and copy_to_host

- don't use GL_UNPACK_ROW_LENGTH, which is unavailable in OpenGL ES
- only transfer directly to/from host buffer if memory is contiguous
- honor min[] values of associated buffer

delcypher/Halide,kenkuang1213/Halide,myrtleTree33/Halide,jiawen/Halide,lglucin/Halide,dougkwan/Halide,ayanazmat/Halide,ronen/Halide,mcanthony/Halide,adasworks/Halide,dougkwan/Halide,ronen/Halide,psuriana/Halide,dougkwan/Halide,myrtleTree33/Halide,damienfir/Halide,ayanazmat/Halide,fengzhyuan/Halide,dan-tull/Halide,damienfir/Halide,fengzhyuan/Halide,rodrigob/Halide,tdenniston/Halide,ayanazmat/Halide,gchauras/Halide,dan-tull/Halide,tdenniston/Halide,psuriana/Halide,kgnk/Halide,mcanthony/Halide,tdenniston/Halide,smxlong/Halide,tdenniston/Halide,lglucin/Halide,mcanthony/Halide,ronen/Halide,aam/Halide,adasworks/Halide,ronen/Halide,adasworks/Halide,kenkuang1213/Halide,fengzhyuan/Halide,kenkuang1213/Halide,ronen/Halide,adasworks/Halide,fengzhyuan/Halide,lglucin/Halide,tdenniston/Halide,kenkuang1213/Halide,myrtleTree33/Halide,damienfir/Halide,kgnk/Halide,damienfir/Halide,gchauras/Halide,fengzhyuan/Halide,delcypher/Halide,aam/Halide,dougkwan/Halide,gchauras/Halide,psuriana/Halide,ayanazmat/Halide,jiawen/Halide,aam/Halide,tdenniston/Halide,kgnk/Halide,ayanazmat/Halide,jiawen/Halide,dan-tull/Halide,lglucin/Halide,fengzhyuan/Halide,rodrigob/Halide,adasworks/Halide,mcanthony/Halide,mcanthony/Halide,adasworks/Halide,kgnk/Halide,smxlong/Halide,kenkuang1213/Halide,dougkwan/Halide,rodrigob/Halide,kgnk/Halide,gchauras/Halide,kenkuang1213/Halide,dougkwan/Halide,adasworks/Halide,ronen/Halide,psuriana/Halide,rodrigob/Halide,damienfir/Halide,psuriana/Halide,fengzhyuan/Halide,gchauras/Halide,damienfir/Halide,jiawen/Halide,mcanthony/Halide,ayanazmat/Halide,adasworks/Halide,delcypher/Halide,ayanazmat/Halide,gchauras/Halide,kgnk/Halide,ronen/Halide,dan-tull/Halide,lglucin/Halide,jiawen/Halide,myrtleTree33/Halide,rodrigob/Halide,myrtleTree33/Halide,jiawen/Halide,ronen/Halide,dougkwan/Halide,jiawen/Halide,dan-tull/Halide,tdenniston/Halide,damienfir/Halide,delcypher/Halide,psuriana/Halide,delcypher/Halide,smxlong/Halide,aam/Halide,psuriana/Halide,aam/Halide,myrtleTree33/Halide,damienfir/Halide,smxlong/Halide,lglucin/Halide,smxlong/Halide,rodrigob/Halide,mcanthony/Halide,lglucin/Halide,dougkwan/Halide,myrtleTree33/Halide,ayanazmat/Halide,delcypher/Halide,dan-tull/Halide,delcypher/Halide,dan-tull/Halide,smxlong/Halide,rodrigob/Halide,myrtleTree33/Halide,aam/Halide,delcypher/Halide,aam/Halide,tdenniston/Halide,smxlong/Halide,fengzhyuan/Halide,mcanthony/Halide,kenkuang1213/Halide,smxlong/Halide,dan-tull/Halide,kgnk/Halide,kenkuang1213/Halide,kgnk/Halide,rodrigob/Halide