gles2rice: Merged upstream into DeviceBuilder.cpp.