main/performance_query: s/GLboolean/bool/
authorRobert Bragg <robert@sixbynine.org>
Thu, 23 Feb 2017 11:16:50 +0000 (11:16 +0000)
committerRobert Bragg <robert@sixbynine.org>
Fri, 24 Feb 2017 17:16:11 +0000 (17:16 +0000)
Ideally would have caught these when adding the interface but this just
switches a few return types for the INTEL_performance_query backend
interface to bool instead of GLboolean.

Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/drivers/dri/i965/brw_performance_query.c
src/mesa/main/dd.h

index 46847bef53da80de7aee07888e65b0f16cf5aaea..6cd5bf4caa5e67138079b9826cedd7dbb4f32fc6 100644 (file)
@@ -202,7 +202,7 @@ snapshot_statistics_registers(struct brw_context *brw,
 /**
  * Driver hook for glBeginPerfQueryINTEL().
  */
-static GLboolean
+static bool
 brw_begin_perf_query(struct gl_context *ctx,
                      struct gl_perf_query_object *o)
 {
@@ -351,7 +351,7 @@ brw_wait_perf_query(struct gl_context *ctx, struct gl_perf_query_object *o)
    drm_intel_bo_wait_rendering(bo);
 }
 
-static GLboolean
+static bool
 brw_is_perf_query_ready(struct gl_context *ctx,
                         struct gl_perf_query_object *o)
 {
index aba301cf22ea4d13caf595e1e60e45037645e3a3..63fc62103a7fec5c510fca6f64e810eb01f5781c 100644 (file)
@@ -804,14 +804,14 @@ struct dd_function_table {
                                                        unsigned queryIndex);
    void (*DeletePerfQuery)(struct gl_context *ctx,
                            struct gl_perf_query_object *obj);
-   GLboolean (*BeginPerfQuery)(struct gl_context *ctx,
-                               struct gl_perf_query_object *obj);
+   bool (*BeginPerfQuery)(struct gl_context *ctx,
+                          struct gl_perf_query_object *obj);
    void (*EndPerfQuery)(struct gl_context *ctx,
                         struct gl_perf_query_object *obj);
    void (*WaitPerfQuery)(struct gl_context *ctx,
                          struct gl_perf_query_object *obj);
-   GLboolean (*IsPerfQueryReady)(struct gl_context *ctx,
-                                 struct gl_perf_query_object *obj);
+   bool (*IsPerfQueryReady)(struct gl_context *ctx,
+                            struct gl_perf_query_object *obj);
    void (*GetPerfQueryData)(struct gl_context *ctx,
                             struct gl_perf_query_object *obj,
                             GLsizei dataSize,