tr_dump_state.h 3.68 KB
Newer Older
1 2
/**************************************************************************
 *
Jose Fonseca's avatar
Jose Fonseca committed
3
 * Copyright 2008 VMware, Inc.
4 5 6
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
7
 * copy of this software and associated documentation files (the
8 9 10 11 12 13 14 15 16 17 18 19 20
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sub license, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice (including the
 * next paragraph) shall be included in all copies or substantial portions
 * of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
Jose Fonseca's avatar
Jose Fonseca committed
21
 * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
22 23 24 25 26 27
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 **************************************************************************/

28 29
#ifndef TR_DUMP_STATE_H_
#define TR_DUMP_STATE_H_
30

José Fonseca's avatar
José Fonseca committed
31 32
#include "pipe/p_state.h"
#include "pipe/p_shader_tokens.h"
33 34


35 36 37
void trace_dump_resource_template(const struct pipe_resource *templat);

void trace_dump_box(const struct pipe_box *box);
38

39
void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state);
José Fonseca's avatar
José Fonseca committed
40

41
void trace_dump_poly_stipple(const struct pipe_poly_stipple *state);
José Fonseca's avatar
José Fonseca committed
42

43
void trace_dump_viewport_state(const struct pipe_viewport_state *state);
José Fonseca's avatar
José Fonseca committed
44

45
void trace_dump_scissor_state(const struct pipe_scissor_state *state);
José Fonseca's avatar
José Fonseca committed
46

47
void trace_dump_clip_state(const struct pipe_clip_state *state);
José Fonseca's avatar
José Fonseca committed
48

49
void trace_dump_token(const struct tgsi_token *token);
José Fonseca's avatar
José Fonseca committed
50

51
void trace_dump_shader_state(const struct pipe_shader_state *state);
José Fonseca's avatar
José Fonseca committed
52

53 54
void trace_dump_compute_state(const struct pipe_compute_state *state);

55
void trace_dump_depth_stencil_alpha_state(const struct pipe_depth_stencil_alpha_state *state);
José Fonseca's avatar
José Fonseca committed
56

57
void trace_dump_blend_state(const struct pipe_blend_state *state);
José Fonseca's avatar
José Fonseca committed
58

59
void trace_dump_blend_color(const struct pipe_blend_color *state);
José Fonseca's avatar
José Fonseca committed
60

61 62
void trace_dump_stencil_ref(const struct pipe_stencil_ref *state);

63
void trace_dump_framebuffer_state(const struct pipe_framebuffer_state *state);
José Fonseca's avatar
José Fonseca committed
64

65
void trace_dump_sampler_state(const struct pipe_sampler_state *state);
José Fonseca's avatar
José Fonseca committed
66

Jose Fonseca's avatar
Jose Fonseca committed
67 68
void trace_dump_sampler_view_template(const struct pipe_sampler_view *view,
                                      enum pipe_texture_target target);
69

Jose Fonseca's avatar
Jose Fonseca committed
70 71
void trace_dump_surface_template(const struct pipe_surface *state,
                                 enum pipe_texture_target target);
José Fonseca's avatar
José Fonseca committed
72

73 74
void trace_dump_transfer(const struct pipe_transfer *state);

75
void trace_dump_vertex_buffer(const struct pipe_vertex_buffer *state);
José Fonseca's avatar
José Fonseca committed
76

77
void trace_dump_vertex_element(const struct pipe_vertex_element *state);
José Fonseca's avatar
José Fonseca committed
78

79 80
void trace_dump_constant_buffer(const struct pipe_constant_buffer *state);

81 82
void trace_dump_shader_buffer(const struct pipe_shader_buffer *buffer);

83 84
void trace_dump_draw_info(const struct pipe_draw_info *state);

85 86
void trace_dump_draw_start_count(const struct pipe_draw_start_count *state);

87 88
void trace_dump_draw_indirect_info(const struct pipe_draw_indirect_info *state);

89 90
void trace_dump_blit_info(const struct pipe_blit_info *);

91 92
void trace_dump_query_result(unsigned query_type,
                             const union pipe_query_result *result);
José Fonseca's avatar
José Fonseca committed
93

94 95
void trace_dump_grid_info(const struct pipe_grid_info *state);

96 97
void trace_dump_image_view(const struct pipe_image_view *view);

98
#endif /* TR_STATE_H */