Mesa (master): intel: Remove stale comment about non-intel gl_buffer_objects.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Sep 22 18:48:02 UTC 2011
Module: Mesa
Branch: master
Commit: d58a3182b1e680105731897fe2d84928daf89fce
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d58a3182b1e680105731897fe2d84928daf89fce
Author: Eric Anholt <eric at anholt.net>
Date: Wed Sep 21 09:27:51 2011 -0700
intel: Remove stale comment about non-intel gl_buffer_objects.
This hasn't been true since dd26899ca39111e0866afed9df94bfb1618dd363
in 2009.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/intel/intel_buffer_objects.h | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.h b/src/mesa/drivers/dri/intel/intel_buffer_objects.h
index b174e93..e74d061 100644
--- a/src/mesa/drivers/dri/intel/intel_buffer_objects.h
+++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.h
@@ -84,14 +84,7 @@ void intel_upload_finish(struct intel_context *intel);
*/
void intelInitBufferObjectFuncs(struct dd_function_table *functions);
-
-
-/* Are the obj->Name tests necessary? Unfortunately yes, mesa
- * allocates a couple of gl_buffer_object structs statically, and
- * the Name == 0 test is the only way to identify them and avoid
- * casting them erroneously to our structs.
- */
-static INLINE struct intel_buffer_object *
+static inline struct intel_buffer_object *
intel_buffer_object(struct gl_buffer_object *obj)
{
return (struct intel_buffer_object *) obj;
More information about the mesa-commit
mailing list