gallium: s/uint/enum pipe_render_cond_flag/ for set_render_condition()
authorBrian Paul <brianp@vmware.com>
Sun, 5 Mar 2017 20:07:28 +0000 (13:07 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Mar 2017 15:50:20 +0000 (08:50 -0700)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
17 files changed:
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h
src/gallium/auxiliary/util/u_blitter.h
src/gallium/drivers/ddebug/dd_context.c
src/gallium/drivers/freedreno/freedreno_query.c
src/gallium/drivers/nouveau/nv30/nv30_query.c
src/gallium/drivers/nouveau/nv50/nv50_query.c
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/drivers/r300/r300_query.c
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/svga/svga_pipe_query.c
src/gallium/drivers/swr/swr_context.cpp
src/gallium/drivers/trace/tr_context.c
src/gallium/drivers/virgl/virgl_encode.c
src/gallium/drivers/virgl/virgl_encode.h
src/gallium/drivers/virgl/virgl_query.c
src/gallium/include/pipe/p_context.h

index d033ed380e9f5eae6f6d285a57712f622bbefb2e..3d3c44cf81ac12b84b7050f3ee243633e2a7c69f 100644 (file)
@@ -852,7 +852,8 @@ cso_restore_stencil_ref(struct cso_context *ctx)
 
 void cso_set_render_condition(struct cso_context *ctx,
                               struct pipe_query *query,
-                              boolean condition, uint mode)
+                              boolean condition,
+                              enum pipe_render_cond_flag mode)
 {
    struct pipe_context *pipe = ctx->pipe;
 
index 56b1f827577caf1ecd68b92c9dd774cb1ac9a5f4..742bbb516f16f1bb6f901598f00d4f723bfe7f8f 100644 (file)
@@ -150,7 +150,8 @@ void cso_set_stencil_ref(struct cso_context *cso,
 
 void cso_set_render_condition(struct cso_context *cso,
                               struct pipe_query *query,
-                              boolean condition, uint mode);
+                              boolean condition,
+                              enum pipe_render_cond_flag mode);
 
 
 #define CSO_BIT_AUX_VERTEX_BUFFER_SLOT    0x1
index d7d9f4a40ee3d53965591cb451663b03378ddda2..f47c3dd07e998e1a8aa69c49ddabf1c513211792 100644 (file)
@@ -535,7 +535,7 @@ static inline void
 util_blitter_save_render_condition(struct blitter_context *blitter,
                                    struct pipe_query *query,
                                    boolean condition,
-                                   uint mode)
+                                   enum pipe_render_cond_flag mode)
 {
    blitter->saved_render_cond_query = query;
    blitter->saved_render_cond_mode = mode;
index 775823c2a0656e4e5e1ba0bdbfdc1523c10bed56..d73b094ffafd2c1d7c9ec1548e82945f0a410f88 100644 (file)
@@ -161,7 +161,7 @@ dd_context_set_active_query_state(struct pipe_context *_pipe, boolean enable)
 static void
 dd_context_render_condition(struct pipe_context *_pipe,
                             struct pipe_query *query, boolean condition,
-                            uint mode)
+                            enum pipe_render_cond_flag mode)
 {
    struct dd_context *dctx = dd_context(_pipe);
    struct pipe_context *pipe = dctx->pipe;
index 18e0c793c51a2d93061a897939f6611b7d2cd129..1e72c6d65f1bd5c3987d712e9f2be0c7900e817f 100644 (file)
@@ -84,7 +84,7 @@ fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
 
 static void
 fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq,
-                                       boolean condition, uint mode)
+                                       boolean condition, enum pipe_render_cond_flag mode)
 {
        struct fd_context *ctx = fd_context(pctx);
        ctx->cond_query = pq;
index aa9a12fe3bd72c71a3137df44c618f29ca0944aa..83ea3afec021046179f78426fe13807ee37ece75 100644 (file)
@@ -238,7 +238,7 @@ nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq,
 static void
 nv40_query_render_condition(struct pipe_context *pipe,
                             struct pipe_query *pq,
-                            boolean condition, uint mode)
+                            boolean condition, enum pipe_render_cond_flag mode)
 {
    struct nv30_context *nv30 = nv30_context(pipe);
    struct nv30_query *q = nv30_query(pq);
index e57e3ac8c3b3829434e764631df25c1602e1bb2e..ec6ee0f5eb327a1f7ac9ce1f325753e3cc6e72b1 100644 (file)
@@ -73,7 +73,7 @@ nv50_get_query_result(struct pipe_context *pipe, struct pipe_query *pq,
 static void
 nv50_render_condition(struct pipe_context *pipe,
                       struct pipe_query *pq,
-                      boolean condition, uint mode)
+                      boolean condition, enum pipe_render_cond_flag mode)
 {
    struct nv50_context *nv50 = nv50_context(pipe);
    struct nouveau_pushbuf *push = nv50->base.pushbuf;
index 24aa5ed2be4e1f72282d5f30d8b4a7ba388bb807..e3090745e3b75c9c56526cc818a226578d952017 100644 (file)
@@ -95,7 +95,7 @@ nvc0_get_query_result_resource(struct pipe_context *pipe,
 static void
 nvc0_render_condition(struct pipe_context *pipe,
                       struct pipe_query *pq,
-                      boolean condition, uint mode)
+                      boolean condition, enum pipe_render_cond_flag mode)
 {
    struct nvc0_context *nvc0 = nvc0_context(pipe);
    struct nouveau_pushbuf *push = nvc0->base.pushbuf;
index 79e2198d3a78a237b39a92f632e693a969e73c82..d2dc7b73c05b96271bbddc006f610957dd894044 100644 (file)
@@ -182,7 +182,7 @@ static boolean r300_get_query_result(struct pipe_context* pipe,
 static void r300_render_condition(struct pipe_context *pipe,
                                   struct pipe_query *query,
                                   boolean condition,
-                                  uint mode)
+                                  enum pipe_render_cond_flag mode)
 {
     struct r300_context *r300 = r300_context(pipe);
     union pipe_query_result result;
index bcc573169b28e5a981dcad90532c6890097115d3..2c3b5f4dd1d8a579be60ab36d6001030e7c00b51 100644 (file)
@@ -1583,7 +1583,7 @@ static void r600_query_hw_get_result_resource(struct r600_common_context *rctx,
 static void r600_render_condition(struct pipe_context *ctx,
                                  struct pipe_query *query,
                                  boolean condition,
-                                 uint mode)
+                                 enum pipe_render_cond_flag mode)
 {
        struct r600_common_context *rctx = (struct r600_common_context *)ctx;
        struct r600_query_hw *rquery = (struct r600_query_hw *)query;
index e8bae264cf15681fd714eb006cc81c21d25d7d3f..06c0c811ec96e8fa5797afbb8ceb9c85113c7e08 100644 (file)
@@ -1193,7 +1193,7 @@ svga_get_query_result(struct pipe_context *pipe,
 
 static void
 svga_render_condition(struct pipe_context *pipe, struct pipe_query *q,
-                      boolean condition, uint mode)
+                      boolean condition, enum pipe_render_cond_flag mode)
 {
    struct svga_context *svga = svga_context(pipe);
    struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws;
index 1c98ac2de34be91b957cbf38ab2358b2864153d7..8c5a2692db7145c2f293b1a5cf9cbc4ac8064cba 100644 (file)
@@ -394,7 +394,7 @@ static void
 swr_render_condition(struct pipe_context *pipe,
                      struct pipe_query *query,
                      boolean condition,
-                     uint mode)
+                     enum pipe_render_cond_flag mode)
 {
    struct swr_context *ctx = swr_context(pipe);
 
index 18032380d2d34b98027f51b872b2875139f2fe2e..40a56df4e5f8b784068a19e07ced53b0ea4d4364 100644 (file)
@@ -1580,7 +1580,7 @@ static void
 trace_context_render_condition(struct pipe_context *_context,
                                struct pipe_query *query,
                                boolean condition,
-                               uint mode)
+                               enum pipe_render_cond_flag mode)
 {
    struct trace_context *tr_context = trace_context(_context);
    struct pipe_context *context = tr_context->pipe;
index 85843b70094edaa357a6d99e44ea1945b321949a..cbe8d19c9d8c8d7b6a51a7afc58b1d2a2a6c2717 100644 (file)
@@ -821,7 +821,7 @@ int virgl_encoder_get_query_result(struct virgl_context *ctx,
 
 int virgl_encoder_render_condition(struct virgl_context *ctx,
                                   uint32_t handle, boolean condition,
-                                  uint mode)
+                                  enum pipe_render_cond_flag mode)
 {
    virgl_encoder_write_cmd_dword(ctx, VIRGL_CMD0(VIRGL_CCMD_SET_RENDER_CONDITION, 0, VIRGL_RENDER_CONDITION_SIZE));
    virgl_encoder_write_dword(ctx->cbuf, handle);
index 030bcd6d16eb95c974ba89a1b3162cd7dee8d793..78d4194683b65a3557c93b553f7afcf49dc6c96c 100644 (file)
@@ -236,7 +236,7 @@ int virgl_encoder_get_query_result(struct virgl_context *ctx,
 
 int virgl_encoder_render_condition(struct virgl_context *ctx,
                                   uint32_t handle, boolean condition,
-                                  uint mode);
+                                  enum pipe_render_cond_flag mode);
 
 int virgl_encoder_set_sub_ctx(struct virgl_context *ctx, uint32_t sub_ctx_id);
 int virgl_encoder_create_sub_ctx(struct virgl_context *ctx, uint32_t sub_ctx_id);
index 4ddb925b3479119bea2c7e665ce173b09d06d726..e6ca4609c032b08f332348e242cc886b73606f9c 100644 (file)
@@ -46,7 +46,7 @@ static inline struct virgl_query *virgl_query(struct pipe_query *q)
 static void virgl_render_condition(struct pipe_context *ctx,
                                   struct pipe_query *q,
                                   boolean condition,
-                                  uint mode)
+                                  enum pipe_render_cond_flag mode)
 {
    struct virgl_context *vctx = virgl_context(ctx);
    struct virgl_query *query = virgl_query(q);
index fee26f383c7bdd9537d3261ba7b0de611c8d8b88..a29fff514a6cc01e880bb18788b17604a2b62a46 100644 (file)
@@ -119,7 +119,7 @@ struct pipe_context {
    void (*render_condition)( struct pipe_context *pipe,
                              struct pipe_query *query,
                              boolean condition,
-                             uint mode );
+                             enum pipe_render_cond_flag mode );
 
    /**
     * Query objects