mesa: 80-column wrapping and whitespace fixes
This commit is contained in:
@@ -191,7 +191,8 @@ _mesa_notifySwapBuffers(struct gl_context *ctx)
|
|||||||
* is acceptable but the actual depth type will be GLushort or GLuint as
|
* is acceptable but the actual depth type will be GLushort or GLuint as
|
||||||
* needed.
|
* needed.
|
||||||
* \param stencilBits requested minimum bits per stencil buffer value
|
* \param stencilBits requested minimum bits per stencil buffer value
|
||||||
* \param accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits number of bits per color component in accum buffer.
|
* \param accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits number
|
||||||
|
* of bits per color component in accum buffer.
|
||||||
* \param indexBits number of bits per pixel if \p rgbFlag is GL_FALSE
|
* \param indexBits number of bits per pixel if \p rgbFlag is GL_FALSE
|
||||||
* \param redBits number of bits per color component in frame buffer for RGB(A)
|
* \param redBits number of bits per color component in frame buffer for RGB(A)
|
||||||
* mode. We always use 8 in core Mesa though.
|
* mode. We always use 8 in core Mesa though.
|
||||||
@@ -200,8 +201,8 @@ _mesa_notifySwapBuffers(struct gl_context *ctx)
|
|||||||
* \param alphaBits same as above.
|
* \param alphaBits same as above.
|
||||||
* \param numSamples not really used.
|
* \param numSamples not really used.
|
||||||
*
|
*
|
||||||
* \return pointer to new struct gl_config or NULL if requested parameters can't be
|
* \return pointer to new struct gl_config or NULL if requested parameters
|
||||||
* met.
|
* can't be met.
|
||||||
*
|
*
|
||||||
* \note Need to add params for level and numAuxBuffers (at least)
|
* \note Need to add params for level and numAuxBuffers (at least)
|
||||||
*/
|
*/
|
||||||
@@ -1186,7 +1187,8 @@ _mesa_destroy_context( struct gl_context *ctx )
|
|||||||
* structures.
|
* structures.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
_mesa_copy_context( const struct gl_context *src, struct gl_context *dst, GLuint mask )
|
_mesa_copy_context( const struct gl_context *src, struct gl_context *dst,
|
||||||
|
GLuint mask )
|
||||||
{
|
{
|
||||||
if (mask & GL_ACCUM_BUFFER_BIT) {
|
if (mask & GL_ACCUM_BUFFER_BIT) {
|
||||||
/* OK to memcpy */
|
/* OK to memcpy */
|
||||||
|
@@ -30,16 +30,16 @@
|
|||||||
* There are three large Mesa data types/classes which are meant to be
|
* There are three large Mesa data types/classes which are meant to be
|
||||||
* used by device drivers:
|
* used by device drivers:
|
||||||
* - struct gl_context: this contains the Mesa rendering state
|
* - struct gl_context: this contains the Mesa rendering state
|
||||||
* - struct gl_config: this describes the color buffer (RGB vs. ci), whether or not
|
* - struct gl_config: this describes the color buffer (RGB vs. ci), whether
|
||||||
* there's a depth buffer, stencil buffer, etc.
|
* or not there's a depth buffer, stencil buffer, etc.
|
||||||
* - struct gl_framebuffer: contains pointers to the depth buffer, stencil buffer,
|
* - struct gl_framebuffer: contains pointers to the depth buffer, stencil
|
||||||
* accum buffer and alpha buffers.
|
* buffer, accum buffer and alpha buffers.
|
||||||
*
|
*
|
||||||
* These types should be encapsulated by corresponding device driver
|
* These types should be encapsulated by corresponding device driver
|
||||||
* data types. See xmesa.h and xmesaP.h for an example.
|
* data types. See xmesa.h and xmesaP.h for an example.
|
||||||
*
|
*
|
||||||
* In OOP terms, struct gl_context, struct gl_config, and struct gl_framebuffer are base classes
|
* In OOP terms, struct gl_context, struct gl_config, and struct gl_framebuffer
|
||||||
* which the device driver must derive from.
|
* are base classes which the device driver must derive from.
|
||||||
*
|
*
|
||||||
* The following functions create and destroy these data types.
|
* The following functions create and destroy these data types.
|
||||||
*/
|
*/
|
||||||
|
@@ -27,8 +27,6 @@
|
|||||||
* Shared-context state
|
* Shared-context state
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "imports.h"
|
#include "imports.h"
|
||||||
#include "mfeatures.h"
|
#include "mfeatures.h"
|
||||||
#include "mtypes.h"
|
#include "mtypes.h"
|
||||||
@@ -46,6 +44,7 @@
|
|||||||
#include "shaderobj.h"
|
#include "shaderobj.h"
|
||||||
#include "syncobj.h"
|
#include "syncobj.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocate and initialize a shared context state structure.
|
* Allocate and initialize a shared context state structure.
|
||||||
* Initializes the display list, texture objects and vertex programs hash
|
* Initializes the display list, texture objects and vertex programs hash
|
||||||
@@ -403,7 +402,8 @@ free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared)
|
|||||||
* \sa free_shared_state().
|
* \sa free_shared_state().
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
_mesa_release_shared_state(struct gl_context *ctx, struct gl_shared_state *shared)
|
_mesa_release_shared_state(struct gl_context *ctx,
|
||||||
|
struct gl_shared_state *shared)
|
||||||
{
|
{
|
||||||
GLint RefCount;
|
GLint RefCount;
|
||||||
|
|
||||||
|
@@ -32,7 +32,8 @@ _mesa_alloc_shared_state(struct gl_context *ctx);
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_mesa_release_shared_state(struct gl_context *ctx, struct gl_shared_state *shared);
|
_mesa_release_shared_state(struct gl_context *ctx,
|
||||||
|
struct gl_shared_state *shared);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user