diff options
author | Marek Olšák <[email protected]> | 2014-01-21 18:01:01 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-01-28 01:38:56 +0100 |
commit | 4e5c70e066b0fa28a6e40791963604286929a412 (patch) | |
tree | 8288a21b8309ef38b3909fa93a24c14e0e3f4d56 /src/gallium/drivers/r600/r600_pipe.h | |
parent | f5bd5568abcc234c1c2b6a4bb67b880706f3caed (diff) |
r600g: move queries to drivers/radeon
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 88b08604940..85bebc3bbf8 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -62,11 +62,6 @@ #define R600_BIG_ENDIAN 0 #endif -#define R600_QUERY_DRAW_CALLS (PIPE_QUERY_DRIVER_SPECIFIC + 0) -#define R600_QUERY_REQUESTED_VRAM (PIPE_QUERY_DRIVER_SPECIFIC + 1) -#define R600_QUERY_REQUESTED_GTT (PIPE_QUERY_DRIVER_SPECIFIC + 2) -#define R600_QUERY_BUFFER_WAIT_TIME (PIPE_QUERY_DRIVER_SPECIFIC + 3) - struct r600_context; struct r600_bytecode; struct r600_shader_key; @@ -364,34 +359,6 @@ struct r600_shader_state { struct r600_pipe_shader_selector *shader; }; -struct r600_query_buffer { - /* The buffer where query results are stored. */ - struct r600_resource *buf; - /* Offset of the next free result after current query data */ - unsigned results_end; - /* If a query buffer is full, a new buffer is created and the old one - * is put in here. When we calculate the result, we sum up the samples - * from all buffers. */ - struct r600_query_buffer *previous; -}; - -struct r600_query { - /* The query buffer and how many results are in it. */ - struct r600_query_buffer buffer; - /* The type of query */ - unsigned type; - /* Size of the result in memory for both begin_query and end_query, - * this can be one or two numbers, or it could even be a size of a structure. */ - unsigned result_size; - /* The number of dwords for begin_query or end_query. */ - unsigned num_cs_dw; - /* linked list of queries */ - struct list_head list; - /* for custom non-GPU queries */ - uint64_t begin_result; - uint64_t end_result; -}; - struct r600_context { struct r600_common_context b; struct r600_screen *screen; @@ -404,8 +371,6 @@ struct r600_context { boolean keep_tiling_flags; unsigned default_ps_gprs, default_vs_gprs; unsigned r6xx_num_clause_temp_gprs; - unsigned backend_mask; - unsigned max_db; /* for OQ */ /* Miscellaneous state objects. */ void *custom_dsa_flush; @@ -478,25 +443,6 @@ struct r600_context { int last_primitive_type; /* Last primitive type used in draw_vbo. */ int last_start_instance; - /* Queries. */ - /* The list of active queries. Only one query of each type can be active. */ - int num_occlusion_queries; - int num_pipelinestat_queries; - /* Keep track of non-timer queries, because they should be suspended - * during context flushing. - * The timer queries (TIME_ELAPSED) shouldn't be suspended. */ - struct list_head active_nontimer_queries; - unsigned num_cs_dw_nontimer_queries_suspend; - /* If queries have been suspended. */ - bool nontimer_queries_suspended; - unsigned num_draw_calls; - - /* Render condition. */ - struct pipe_query *current_render_cond; - unsigned current_render_cond_mode; - boolean current_render_cond_cond; - boolean predicate_drawing; - void *sb_context; struct r600_isa *isa; }; @@ -589,12 +535,6 @@ void r600_decompress_color_textures(struct r600_context *rctx, /* r600_pipe.c */ const char * r600_llvm_gpu_string(enum radeon_family family); - -/* r600_query.c */ -void r600_init_query_functions(struct r600_context *rctx); -void r600_suspend_nontimer_queries(struct r600_context *ctx); -void r600_resume_nontimer_queries(struct r600_context *ctx); - /* r600_resource.c */ void r600_init_context_resource_functions(struct r600_context *r600); @@ -628,7 +568,6 @@ boolean r600_is_format_supported(struct pipe_screen *screen, void r600_update_db_shader_control(struct r600_context * rctx); /* r600_hw_context.c */ -void r600_get_backend_mask(struct r600_context *ctx); void r600_context_flush(struct r600_context *ctx, unsigned flags); void r600_begin_new_cs(struct r600_context *ctx); void r600_flush_emit(struct r600_context *ctx); |