radeonsi: remove r600_pipe_common::save_qbo_state
authorMarek Olšák <marek.olsak@amd.com>
Sun, 1 Apr 2018 17:55:34 +0000 (13:55 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 5 Apr 2018 19:34:58 +0000 (15:34 -0400)
Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeon/r600_perfcounter.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h

index 689f4a38edcd0af77d54575a49c148a15ba5d5d6..0e7b3d910f83c6abcb885b781d03f977bad57925 100644 (file)
@@ -354,7 +354,7 @@ struct pipe_query *si_create_batch_query(struct pipe_context *ctx,
        i = 0;
        for (group = query->groups; group; group = group->next) {
                struct r600_perfcounter_block *block = group->block;
-               unsigned select_dw, read_dw;
+               unsigned read_dw;
                unsigned instances = 1;
 
                if ((block->flags & R600_PC_BLOCK_SE) && group->se < 0)
index 09bc4ea978323e30bf86ca891605ca0cb48ca544..c4ea893952e1006008a805bf3dd5f8c27f1e86e8 100644 (file)
@@ -510,8 +510,6 @@ struct r600_common_context {
        void (*set_occlusion_query_state)(struct pipe_context *ctx,
                                          bool old_enable,
                                          bool old_perfect_enable);
-
-       void (*save_qbo_state)(struct pipe_context *ctx, struct r600_qbo_state *st);
 };
 
 /* r600_buffer_common.c */
index 89fb3dffff6e74a43c5a9f8848805ea71574f4dd..d9c402c008973d60b7830bf29b65f5a8e6666318 100644 (file)
@@ -1660,7 +1660,7 @@ static void r600_query_hw_get_result_resource(struct r600_common_context *rctx,
                        return;
        }
 
-       rctx->save_qbo_state(&rctx->b, &saved_state);
+       si_save_qbo_state(&rctx->b, &saved_state);
 
        r600_get_hw_query_params(rctx, query, index >= 0 ? index : 0, &params);
        consts.end_offset = params.end_offset - params.start_offset;
index 08ba5c0b7dca6c8e2dd98c99b92e0acb8f2d8d0c..8b2f075bd4818396f8f80c8142ebc59c6a210668 100644 (file)
@@ -1361,7 +1361,7 @@ static void si_set_occlusion_query_state(struct pipe_context *ctx,
                si_mark_atom_dirty(sctx, &sctx->msaa_config);
 }
 
-static void si_save_qbo_state(struct pipe_context *ctx, struct r600_qbo_state *st)
+void si_save_qbo_state(struct pipe_context *ctx, struct r600_qbo_state *st)
 {
        struct si_context *sctx = (struct si_context*)ctx;
 
@@ -4589,7 +4589,6 @@ void si_init_state_functions(struct si_context *sctx)
 
        sctx->b.b.set_active_query_state = si_set_active_query_state;
        sctx->b.set_occlusion_query_state = si_set_occlusion_query_state;
-       sctx->b.save_qbo_state = si_save_qbo_state;
 
        sctx->b.b.draw_vbo = si_draw_vbo;
 
index 3788785338845cba2e557bd54b7b748e7195c597..dcf38055f4f5f1d0cac13dbcf6b40ab8c5f3453f 100644 (file)
@@ -403,6 +403,7 @@ si_create_sampler_view_custom(struct pipe_context *ctx,
                              unsigned force_level);
 void si_update_fb_dirtiness_after_rendering(struct si_context *sctx);
 void si_update_ps_iter_samples(struct si_context *sctx);
+void si_save_qbo_state(struct pipe_context *ctx, struct r600_qbo_state *st);
 
 /* si_state_binning.c */
 void si_emit_dpbb_state(struct si_context *sctx, struct r600_atom *state);