i965: Add a note about the late-allocation in intel_bufferobj_buffer().
authorEric Anholt <eric@anholt.net>
Fri, 4 Oct 2013 02:36:03 +0000 (19:36 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Oct 2013 22:33:06 +0000 (15:33 -0700)
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>
src/mesa/drivers/dri/i965/intel_buffer_objects.c

index 5f6b904261b13f521a58208236bcc804bcdd3fa3..8a2472766dbcde2baf311587d48b541e81695077 100644 (file)
@@ -434,6 +434,10 @@ intel_bufferobj_buffer(struct brw_context *brw,
                        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);