I'm using Ubuntu 14.04 with Linux version 3.16.0-30-generic. I've installed Beignet for OpenCL support. I'm running into some errors and the Beignet documentation says to resolve them by applying this patch to the linux kernel. I tried saving the patch and running
patch -p1 < disable-batchbuffer-security.patch
But it says it can't find file to patch. I tried searching for i915_gem_execbuffer.c but couldn't find it. Do I need to install kernel source to apply the patch?