Go to the source code of this file.
Data Structures | |
struct | trace_context |
Functions | |
static struct trace_context * | trace_context (struct pipe_context *pipe) |
struct pipe_context * | trace_context_create (struct pipe_screen *screen, struct pipe_context *pipe) |
static struct trace_context* trace_context | ( | struct pipe_context * | pipe | ) | [static, read] |
Definition at line 51 of file tr_context.h.
References assert.
00052 { 00053 assert(pipe); 00054 return (struct trace_context *)pipe; 00055 }
struct pipe_context* trace_context_create | ( | struct pipe_screen * | screen, | |
struct pipe_context * | pipe | |||
) | [read] |
Definition at line 999 of file tr_context.c.
References trace_context::base, pipe_context::begin_query, pipe_context::bind_blend_state, pipe_context::bind_depth_stencil_alpha_state, pipe_context::bind_fs_state, pipe_context::bind_rasterizer_state, pipe_context::bind_sampler_states, pipe_context::bind_vs_state, CALLOC_STRUCT, pipe_context::clear, pipe_context::create_blend_state, pipe_context::create_depth_stencil_alpha_state, pipe_context::create_fs_state, pipe_context::create_query, pipe_context::create_rasterizer_state, pipe_context::create_sampler_state, pipe_context::create_vs_state, pipe_context::delete_blend_state, pipe_context::delete_depth_stencil_alpha_state, pipe_context::delete_fs_state, pipe_context::delete_rasterizer_state, pipe_context::delete_sampler_state, pipe_context::delete_vs_state, pipe_context::destroy, pipe_context::destroy_query, pipe_context::draw_arrays, pipe_context::draw_elements, pipe_context::draw_range_elements, pipe_context::end_query, pipe_context::flush, pipe_context::get_query_result, trace_context::pipe, pipe_context::screen, pipe_context::set_blend_color, pipe_context::set_clip_state, pipe_context::set_constant_buffer, pipe_context::set_edgeflags, pipe_context::set_framebuffer_state, pipe_context::set_polygon_stipple, pipe_context::set_sampler_textures, pipe_context::set_scissor_state, pipe_context::set_vertex_buffers, pipe_context::set_vertex_elements, pipe_context::set_viewport_state, pipe_context::surface_copy, pipe_context::surface_fill, trace_context_begin_query(), trace_context_bind_blend_state(), trace_context_bind_depth_stencil_alpha_state(), trace_context_bind_fs_state(), trace_context_bind_rasterizer_state(), trace_context_bind_sampler_states(), trace_context_bind_vs_state(), trace_context_clear(), trace_context_create_blend_state(), trace_context_create_depth_stencil_alpha_state(), trace_context_create_fs_state(), trace_context_create_query(), trace_context_create_rasterizer_state(), trace_context_create_sampler_state(), trace_context_create_vs_state(), trace_context_delete_blend_state(), trace_context_delete_depth_stencil_alpha_state(), trace_context_delete_fs_state(), trace_context_delete_rasterizer_state(), trace_context_delete_sampler_state(), trace_context_delete_vs_state(), trace_context_destroy(), trace_context_destroy_query(), trace_context_draw_arrays(), trace_context_draw_elements(), trace_context_draw_range_elements(), trace_context_end_query(), trace_context_flush(), trace_context_get_query_result(), trace_context_set_blend_color(), trace_context_set_clip_state(), trace_context_set_constant_buffer(), trace_context_set_edgeflags(), trace_context_set_framebuffer_state(), trace_context_set_polygon_stipple(), trace_context_set_sampler_textures(), trace_context_set_scissor_state(), trace_context_set_vertex_buffers(), trace_context_set_vertex_elements(), trace_context_set_viewport_state(), trace_context_surface_copy(), trace_context_surface_fill(), trace_dump_arg_begin(), trace_dump_arg_end(), trace_dump_call_begin(), trace_dump_call_end(), trace_dump_enabled(), trace_dump_ptr(), trace_dump_ret, pipe_screen::winsys, and pipe_context::winsys.
01001 { 01002 struct trace_context *tr_ctx; 01003 01004 if(!pipe) 01005 goto error1; 01006 01007 if(!trace_dump_enabled()) 01008 goto error1; 01009 01010 tr_ctx = CALLOC_STRUCT(trace_context); 01011 if(!tr_ctx) 01012 goto error1; 01013 01014 tr_ctx->base.winsys = screen->winsys; 01015 tr_ctx->base.screen = screen; 01016 tr_ctx->base.destroy = trace_context_destroy; 01017 tr_ctx->base.set_edgeflags = trace_context_set_edgeflags; 01018 tr_ctx->base.draw_arrays = trace_context_draw_arrays; 01019 tr_ctx->base.draw_elements = trace_context_draw_elements; 01020 tr_ctx->base.draw_range_elements = trace_context_draw_range_elements; 01021 tr_ctx->base.create_query = trace_context_create_query; 01022 tr_ctx->base.destroy_query = trace_context_destroy_query; 01023 tr_ctx->base.begin_query = trace_context_begin_query; 01024 tr_ctx->base.end_query = trace_context_end_query; 01025 tr_ctx->base.get_query_result = trace_context_get_query_result; 01026 tr_ctx->base.create_blend_state = trace_context_create_blend_state; 01027 tr_ctx->base.bind_blend_state = trace_context_bind_blend_state; 01028 tr_ctx->base.delete_blend_state = trace_context_delete_blend_state; 01029 tr_ctx->base.create_sampler_state = trace_context_create_sampler_state; 01030 tr_ctx->base.bind_sampler_states = trace_context_bind_sampler_states; 01031 tr_ctx->base.delete_sampler_state = trace_context_delete_sampler_state; 01032 tr_ctx->base.create_rasterizer_state = trace_context_create_rasterizer_state; 01033 tr_ctx->base.bind_rasterizer_state = trace_context_bind_rasterizer_state; 01034 tr_ctx->base.delete_rasterizer_state = trace_context_delete_rasterizer_state; 01035 tr_ctx->base.create_depth_stencil_alpha_state = trace_context_create_depth_stencil_alpha_state; 01036 tr_ctx->base.bind_depth_stencil_alpha_state = trace_context_bind_depth_stencil_alpha_state; 01037 tr_ctx->base.delete_depth_stencil_alpha_state = trace_context_delete_depth_stencil_alpha_state; 01038 tr_ctx->base.create_fs_state = trace_context_create_fs_state; 01039 tr_ctx->base.bind_fs_state = trace_context_bind_fs_state; 01040 tr_ctx->base.delete_fs_state = trace_context_delete_fs_state; 01041 tr_ctx->base.create_vs_state = trace_context_create_vs_state; 01042 tr_ctx->base.bind_vs_state = trace_context_bind_vs_state; 01043 tr_ctx->base.delete_vs_state = trace_context_delete_vs_state; 01044 tr_ctx->base.set_blend_color = trace_context_set_blend_color; 01045 tr_ctx->base.set_clip_state = trace_context_set_clip_state; 01046 tr_ctx->base.set_constant_buffer = trace_context_set_constant_buffer; 01047 tr_ctx->base.set_framebuffer_state = trace_context_set_framebuffer_state; 01048 tr_ctx->base.set_polygon_stipple = trace_context_set_polygon_stipple; 01049 tr_ctx->base.set_scissor_state = trace_context_set_scissor_state; 01050 tr_ctx->base.set_viewport_state = trace_context_set_viewport_state; 01051 tr_ctx->base.set_sampler_textures = trace_context_set_sampler_textures; 01052 tr_ctx->base.set_vertex_buffers = trace_context_set_vertex_buffers; 01053 tr_ctx->base.set_vertex_elements = trace_context_set_vertex_elements; 01054 tr_ctx->base.surface_copy = trace_context_surface_copy; 01055 tr_ctx->base.surface_fill = trace_context_surface_fill; 01056 tr_ctx->base.clear = trace_context_clear; 01057 tr_ctx->base.flush = trace_context_flush; 01058 01059 tr_ctx->pipe = pipe; 01060 01061 trace_dump_call_begin("", "pipe_context_create"); 01062 trace_dump_arg_begin("screen"); 01063 trace_dump_ptr(pipe->screen); 01064 trace_dump_arg_end(); 01065 trace_dump_ret(ptr, pipe); 01066 trace_dump_call_end(); 01067 01068 return &tr_ctx->base; 01069 01070 error1: 01071 return pipe; 01072 }