i965/dri: Rewrite comment for intelCreateBuffer
authorChad Versace <chadversary@chromium.org>
Tue, 23 May 2017 23:04:55 +0000 (16:04 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 30 May 2017 19:01:37 +0000 (12:01 -0700)
The old comment pinned this function to X11 windows. In reality, this
function serves more than X11 and more than just windows.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index 9842de6742395c8efb5a328e2be57126537fd678..5de6f18b84f12d283f7484b8e7f7ef0a96e99f21 100644 (file)
@@ -1152,7 +1152,11 @@ intelDestroyScreen(__DRIscreen * sPriv)
 
 
 /**
- * This is called when we need to set up GL rendering to a new X window.
+ * Create a gl_framebuffer and attach it to __DRIdrawable::driverPrivate.
+ *
+ *_This implements driDriverAPI::createNewDrawable, which the DRI layer calls
+ * when creating a EGLSurface, GLXDrawable, or GLXPixmap. Despite the name,
+ * this does not allocate GPU memory.
  */
 static GLboolean
 intelCreateBuffer(__DRIscreen *dri_screen,