dri: Trim trailing space in dri/dri_util.*

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784>
This commit is contained in:
Yonggang Luo 2022-07-28 16:11:04 +08:00 committed by Marge Bot
parent 9caa6bb71a
commit 6544cf4a2a
2 changed files with 14 additions and 14 deletions

View File

@ -30,7 +30,7 @@
* driver doesn't really \e have to use any of this - it's optional. But, some * driver doesn't really \e have to use any of this - it's optional. But, some
* useful stuff is done here that otherwise would have to be duplicated in most * useful stuff is done here that otherwise would have to be duplicated in most
* drivers. * drivers.
* *
* Basically, these utility functions take care of some of the dirty details of * Basically, these utility functions take care of some of the dirty details of
* screen initialization, context creation, context binding, DRM setup, etc. * screen initialization, context creation, context binding, DRM setup, etc.
* *
@ -216,7 +216,7 @@ driSWRastCreateNewScreen2(int scrn, const __DRIextension **extensions,
/** /**
* Destroy the per-screen private information. * Destroy the per-screen private information.
* *
* \internal * \internal
* This function calls __DriverAPIRec::DestroyScreen on \p screenPrivate, calls * This function calls __DriverAPIRec::DestroyScreen on \p screenPrivate, calls
* drmClose(), and finally frees \p screenPrivate. * drmClose(), and finally frees \p screenPrivate.
@ -662,7 +662,7 @@ driCreateNewContext(__DRIscreen *screen, const __DRIconfig *config,
/** /**
* Destroy the per-context private information. * Destroy the per-context private information.
* *
* \internal * \internal
* This function calls __DriverAPIRec::DestroyContext on \p contextPrivate, calls * This function calls __DriverAPIRec::DestroyContext on \p contextPrivate, calls
* drmDestroyContext(), and finally frees \p contextPrivate. * drmDestroyContext(), and finally frees \p contextPrivate.
@ -729,19 +729,19 @@ static int driBindContext(__DRIcontext *pcp,
/** /**
* Unbind context. * Unbind context.
* *
* \param scrn the screen. * \param scrn the screen.
* \param gc context. * \param gc context.
* *
* \return \c GL_TRUE on success, or \c GL_FALSE on failure. * \return \c GL_TRUE on success, or \c GL_FALSE on failure.
* *
* \internal * \internal
* This function calls __DriverAPIRec::UnbindContext, and then decrements * This function calls __DriverAPIRec::UnbindContext, and then decrements
* __DRIdrawableRec::refcount which must be non-zero for a successful * __DRIdrawableRec::refcount which must be non-zero for a successful
* return. * return.
* *
* While casting the opaque private pointers associated with the parameters * While casting the opaque private pointers associated with the parameters
* into their respective real types it also assures they are not \c NULL. * into their respective real types it also assures they are not \c NULL.
*/ */
static int driUnbindContext(__DRIcontext *pcp) static int driUnbindContext(__DRIcontext *pcp)
{ {

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
* All Rights Reserved. * All Rights Reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the * copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including * "Software"), to deal in the Software without restriction, including
@ -9,11 +9,11 @@
* distribute, sub license, and/or sell copies of the Software, and to * distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to * permit persons to whom the Software is furnished to do so, subject to
* the following conditions: * the following conditions:
* *
* The above copyright notice and this permission notice (including the * The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions * next paragraph) shall be included in all copies or substantial portions
* of the Software. * of the Software.
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
@ -31,7 +31,7 @@
* driver doesn't really \e have to use any of this - it's optional. But, some * driver doesn't really \e have to use any of this - it's optional. But, some
* useful stuff is done here that otherwise would have to be duplicated in most * useful stuff is done here that otherwise would have to be duplicated in most
* drivers. * drivers.
* *
* Basically, these utility functions take care of some of the dirty details of * Basically, these utility functions take care of some of the dirty details of
* screen initialization, context creation, context binding, DRM setup, etc. * screen initialization, context creation, context binding, DRM setup, etc.
* *
@ -39,7 +39,7 @@
* about them. * about them.
* *
* \sa dri_util.c. * \sa dri_util.c.
* *
* \author Kevin E. Martin <kevin@precisioninsight.com> * \author Kevin E. Martin <kevin@precisioninsight.com>
* \author Brian Paul <brian@precisioninsight.com> * \author Brian Paul <brian@precisioninsight.com>
*/ */
@ -162,7 +162,7 @@ struct __DRIscreenRec {
/** /**
* File descriptor returned when the kernel device driver is opened. * File descriptor returned when the kernel device driver is opened.
* *
* Used to: * Used to:
* - authenticate client to kernel * - authenticate client to kernel
* - map the frame buffer, SAREA, etc. * - map the frame buffer, SAREA, etc.
@ -172,7 +172,7 @@ struct __DRIscreenRec {
/** /**
* Device-dependent private information (not stored in the SAREA). * Device-dependent private information (not stored in the SAREA).
* *
* This pointer is never touched by the DRI layer. * This pointer is never touched by the DRI layer.
*/ */
void *driverPrivate; void *driverPrivate;