diff options
author | Eric Anholt <[email protected]> | 2013-10-03 19:36:03 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-10-23 15:33:06 -0700 |
commit | b37f7e0160ae30d75c939bcd1aab8df3a2178820 (patch) | |
tree | 8ca7c5ae0d0aa3a288ae7159bfd229353796b31d /src | |
parent | 060a49a8966d923ad9c02d6f200baacb7ff081d4 (diff) |
i965: Add a note about the late-allocation in intel_bufferobj_buffer().
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_buffer_objects.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index 5f6b904261b..8a2472766db 100644 --- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c @@ -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); |