summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ddebug/dd_draw.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-07-22 01:09:19 +0200
committerMarek Olšák <[email protected]>2016-07-26 23:06:46 +0200
commite4079677a7819a79a4e59425688000f15ceb19d7 (patch)
tree6d6dee672bd6bfdda167a0315bd472ba1fa65511 /src/gallium/drivers/ddebug/dd_draw.c
parentd50f9e9b04266756e16c3afaead8f20944e0f562 (diff)
ddebug: move dd_call into dd_pipe.h
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug/dd_draw.c')
-rw-r--r--src/gallium/drivers/ddebug/dd_draw.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index 1b5cdc89266..86d6102bb02 100644
--- a/src/gallium/drivers/ddebug/dd_draw.c
+++ b/src/gallium/drivers/ddebug/dd_draw.c
@@ -32,72 +32,6 @@
#include "tgsi/tgsi_scan.h"
-enum call_type
-{
- CALL_DRAW_VBO,
- CALL_LAUNCH_GRID,
- CALL_RESOURCE_COPY_REGION,
- CALL_BLIT,
- CALL_FLUSH_RESOURCE,
- CALL_CLEAR,
- CALL_CLEAR_BUFFER,
- CALL_CLEAR_RENDER_TARGET,
- CALL_CLEAR_DEPTH_STENCIL,
- CALL_GENERATE_MIPMAP,
-};
-
-struct call_resource_copy_region
-{
- struct pipe_resource *dst;
- unsigned dst_level;
- unsigned dstx, dsty, dstz;
- struct pipe_resource *src;
- unsigned src_level;
- const struct pipe_box *src_box;
-};
-
-struct call_clear
-{
- unsigned buffers;
- const union pipe_color_union *color;
- double depth;
- unsigned stencil;
-};
-
-struct call_clear_buffer
-{
- struct pipe_resource *res;
- unsigned offset;
- unsigned size;
- const void *clear_value;
- int clear_value_size;
-};
-
-struct call_generate_mipmap {
- struct pipe_resource *res;
- enum pipe_format format;
- unsigned base_level;
- unsigned last_level;
- unsigned first_layer;
- unsigned last_layer;
-};
-
-struct dd_call
-{
- enum call_type type;
-
- union {
- struct pipe_draw_info draw_vbo;
- struct pipe_grid_info launch_grid;
- struct call_resource_copy_region resource_copy_region;
- struct pipe_blit_info blit;
- struct pipe_resource *flush_resource;
- struct call_clear clear;
- struct call_clear_buffer clear_buffer;
- struct call_generate_mipmap generate_mipmap;
- } info;
-};
-
static FILE *
dd_get_file_stream(struct dd_screen *dscreen, unsigned apitrace_call_number)
{