diff options
author | Ian Romanick <[email protected]> | 2015-09-14 17:12:06 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-09-23 09:57:24 -0700 |
commit | d663d8f5d4088407af982577be075fe7e79d4e3d (patch) | |
tree | 4d221bcbc250dae1097e07e800c33cfdce0ef1f1 | |
parent | b7259fc6b0c3a94d2ddbea74470e551c877fc324 (diff) |
t_dd_dmatmp: Use stdbool.h
No piglit regressions on i915 (G33) or radeon (Radeon 7500).
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/tnl_dd/t_dd_dmatmp.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h index 036995c8ca5..a07393da303 100644 --- a/src/mesa/tnl_dd/t_dd_dmatmp.h +++ b/src/mesa/tnl_dd/t_dd_dmatmp.h @@ -24,7 +24,7 @@ * Authors: * Keith Whitwell <[email protected]> */ - +#include <stdbool.h> /** * \file t_dd_dmatmp.h @@ -431,21 +431,21 @@ static tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] = /* Pre-check the primitives in the VB to prevent the need for * fallbacks later on. */ -static GLboolean TAG(validate_render)(struct gl_context *ctx, - struct vertex_buffer *VB) +static bool TAG(validate_render)(struct gl_context *ctx, + struct vertex_buffer *VB) { GLint i; if (VB->ClipOrMask & ~CLIP_CULL_BIT) - return GL_FALSE; + return false; if (VB->Elts) - return GL_FALSE; + return false; for (i = 0 ; i < VB->PrimitiveCount ; i++) { GLuint prim = VB->Primitive[i].mode; GLuint count = VB->Primitive[i].count; - GLboolean ok = GL_FALSE; + bool ok = false; if (!count) continue; @@ -462,7 +462,7 @@ static GLboolean TAG(validate_render)(struct gl_context *ctx, case GL_TRIANGLES: case GL_TRIANGLE_STRIP: case GL_TRIANGLE_FAN: - ok = GL_TRUE; + ok = true; break; case GL_POLYGON: ok = (HAVE_POLYGONS) || ctx->Light.ShadeModel == GL_SMOOTH; @@ -473,7 +473,7 @@ static GLboolean TAG(validate_render)(struct gl_context *ctx, VB->AttribPtr[_TNL_ATTRIB_COLOR0]->stride == 0); break; case GL_QUADS: - ok = GL_TRUE; /* flatshading is ok. */ + ok = true; /* flatshading is ok. */ break; default: break; @@ -481,10 +481,10 @@ static GLboolean TAG(validate_render)(struct gl_context *ctx, if (!ok) { /* fprintf(stderr, "not ok %s\n", _mesa_enum_to_string(prim & PRIM_MODE_MASK)); */ - return GL_FALSE; + return false; } } - return GL_TRUE; + return true; } |