Module: Mesa Branch: master Commit: 85dd3e4de11992162da48bb6b090a78baa578300 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85dd3e4de11992162da48bb6b090a78baa578300
Author: Chad Versace <chadvers...@chromium.org> Date: Tue May 23 16:04:55 2017 -0700 i965/dri: Rewrite comment for intelCreateBuffer 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.pa...@intel.com> --- src/mesa/drivers/dri/i965/intel_screen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 9842de6742..5de6f18b84 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -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, _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit