OSDN Git Service

i965: Change return type of check_state() to bool.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Jun 2013 15:48:18 +0000 (08:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jun 2013 17:58:38 +0000 (10:58 -0700)
The existing code already returned a boolean; this just clarifies that.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state_upload.c

index 500d639..07c49ff 100644 (file)
@@ -281,8 +281,8 @@ void brw_destroy_state( struct brw_context *brw )
 /***********************************************************************
  */
 
-static GLuint check_state( const struct brw_state_flags *a,
-                          const struct brw_state_flags *b )
+static bool
+check_state(const struct brw_state_flags *a, const struct brw_state_flags *b)
 {
    return ((a->mesa & b->mesa) |
           (a->brw & b->brw) |