llvmpipe query buffer object support
This just adds a implementation of get_query_result_resource for llvmpipe.
It doesn't pass all the piglit tests but that is due to other issues in llvmpipe to do with generated primitives being different between D3D10 and GL I think.