This was mostly for the i915 system-memory VBO code, which we don't have
any more, but since that existed we've ended up producing dependencies on
it being there.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
struct intel_buffer_object *intel_obj,
GLuint flag)
{
+ /* This is needed so that things like transform feedback and texture buffer
+ * objects that need a BO but don't want to check that they exist for
+ * draw-time validation can just always get a BO from a GL buffer object.
+ */
if (intel_obj->buffer == NULL)
intel_bufferobj_alloc_buffer(brw, intel_obj);