tr_context.c File Reference

Include dependency graph for tr_context.c:

Go to the source code of this file.

Functions

static struct pipe_texturetrace_texture_unwrap (struct trace_context *tr_ctx, struct pipe_texture *texture)
static struct pipe_surfacetrace_surface_unwrap (struct trace_context *tr_ctx, struct pipe_surface *surface)
static void trace_context_set_edgeflags (struct pipe_context *_pipe, const unsigned *bitfield)
static boolean trace_context_draw_arrays (struct pipe_context *_pipe, unsigned mode, unsigned start, unsigned count)
static boolean trace_context_draw_elements (struct pipe_context *_pipe, struct pipe_buffer *indexBuffer, unsigned indexSize, unsigned mode, unsigned start, unsigned count)
static boolean trace_context_draw_range_elements (struct pipe_context *_pipe, struct pipe_buffer *indexBuffer, unsigned indexSize, unsigned minIndex, unsigned maxIndex, unsigned mode, unsigned start, unsigned count)
static struct pipe_query * trace_context_create_query (struct pipe_context *_pipe, unsigned query_type)
static void trace_context_destroy_query (struct pipe_context *_pipe, struct pipe_query *query)
static void trace_context_begin_query (struct pipe_context *_pipe, struct pipe_query *query)
static void trace_context_end_query (struct pipe_context *_pipe, struct pipe_query *query)
static boolean trace_context_get_query_result (struct pipe_context *_pipe, struct pipe_query *query, boolean wait, uint64 *presult)
static void * trace_context_create_blend_state (struct pipe_context *_pipe, const struct pipe_blend_state *state)
static void trace_context_bind_blend_state (struct pipe_context *_pipe, void *state)
static void trace_context_delete_blend_state (struct pipe_context *_pipe, void *state)
static void * trace_context_create_sampler_state (struct pipe_context *_pipe, const struct pipe_sampler_state *state)
static void trace_context_bind_sampler_states (struct pipe_context *_pipe, unsigned num_states, void **states)
static void trace_context_delete_sampler_state (struct pipe_context *_pipe, void *state)
static void * trace_context_create_rasterizer_state (struct pipe_context *_pipe, const struct pipe_rasterizer_state *state)
static void trace_context_bind_rasterizer_state (struct pipe_context *_pipe, void *state)
static void trace_context_delete_rasterizer_state (struct pipe_context *_pipe, void *state)
static void * trace_context_create_depth_stencil_alpha_state (struct pipe_context *_pipe, const struct pipe_depth_stencil_alpha_state *state)
static void trace_context_bind_depth_stencil_alpha_state (struct pipe_context *_pipe, void *state)
static void trace_context_delete_depth_stencil_alpha_state (struct pipe_context *_pipe, void *state)
static void * trace_context_create_fs_state (struct pipe_context *_pipe, const struct pipe_shader_state *state)
static void trace_context_bind_fs_state (struct pipe_context *_pipe, void *state)
static void trace_context_delete_fs_state (struct pipe_context *_pipe, void *state)
static void * trace_context_create_vs_state (struct pipe_context *_pipe, const struct pipe_shader_state *state)
static void trace_context_bind_vs_state (struct pipe_context *_pipe, void *state)
static void trace_context_delete_vs_state (struct pipe_context *_pipe, void *state)
static void trace_context_set_blend_color (struct pipe_context *_pipe, const struct pipe_blend_color *state)
static void trace_context_set_clip_state (struct pipe_context *_pipe, const struct pipe_clip_state *state)
static void trace_context_set_constant_buffer (struct pipe_context *_pipe, uint shader, uint index, const struct pipe_constant_buffer *buffer)
static void trace_context_set_framebuffer_state (struct pipe_context *_pipe, const struct pipe_framebuffer_state *state)
static void trace_context_set_polygon_stipple (struct pipe_context *_pipe, const struct pipe_poly_stipple *state)
static void trace_context_set_scissor_state (struct pipe_context *_pipe, const struct pipe_scissor_state *state)
static void trace_context_set_viewport_state (struct pipe_context *_pipe, const struct pipe_viewport_state *state)
static void trace_context_set_sampler_textures (struct pipe_context *_pipe, unsigned num_textures, struct pipe_texture **textures)
static void trace_context_set_vertex_buffers (struct pipe_context *_pipe, unsigned num_buffers, const struct pipe_vertex_buffer *buffers)
static void trace_context_set_vertex_elements (struct pipe_context *_pipe, unsigned num_elements, const struct pipe_vertex_element *elements)
static void trace_context_surface_copy (struct pipe_context *_pipe, boolean do_flip, struct pipe_surface *dest, unsigned destx, unsigned desty, struct pipe_surface *src, unsigned srcx, unsigned srcy, unsigned width, unsigned height)
static void trace_context_surface_fill (struct pipe_context *_pipe, struct pipe_surface *dst, unsigned dstx, unsigned dsty, unsigned width, unsigned height, unsigned value)
static void trace_context_clear (struct pipe_context *_pipe, struct pipe_surface *surface, unsigned clearValue)
static void trace_context_flush (struct pipe_context *_pipe, unsigned flags, struct pipe_fence_handle **fence)
static void trace_context_destroy (struct pipe_context *_pipe)
struct pipe_contexttrace_context_create (struct pipe_screen *screen, struct pipe_context *pipe)


Function Documentation

static void trace_context_begin_query ( struct pipe_context _pipe,
struct pipe_query *  query 
) [static]

Definition at line 238 of file tr_context.c.

References pipe_context::begin_query, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00240 {
00241    struct trace_context *tr_ctx = trace_context(_pipe);
00242    struct pipe_context *pipe = tr_ctx->pipe;
00243 
00244    trace_dump_call_begin("pipe_context", "begin_query");
00245 
00246    trace_dump_arg(ptr, pipe);
00247    trace_dump_arg(ptr, query);
00248 
00249    pipe->begin_query(pipe, query);;
00250 
00251    trace_dump_call_end();
00252 }

static void trace_context_bind_blend_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 324 of file tr_context.c.

References pipe_context::bind_blend_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00326 {
00327    struct trace_context *tr_ctx = trace_context(_pipe);
00328    struct pipe_context *pipe = tr_ctx->pipe;
00329 
00330    trace_dump_call_begin("pipe_context", "bind_blend_state");
00331 
00332    trace_dump_arg(ptr, pipe);
00333    trace_dump_arg(ptr, state);
00334 
00335    pipe->bind_blend_state(pipe, state);;
00336 
00337    trace_dump_call_end();
00338 }

static void trace_context_bind_depth_stencil_alpha_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 502 of file tr_context.c.

References pipe_context::bind_depth_stencil_alpha_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00504 {
00505    struct trace_context *tr_ctx = trace_context(_pipe);
00506    struct pipe_context *pipe = tr_ctx->pipe;
00507 
00508    trace_dump_call_begin("pipe_context", "bind_depth_stencil_alpha_state");
00509 
00510    trace_dump_arg(ptr, pipe);
00511    trace_dump_arg(ptr, state);
00512 
00513    pipe->bind_depth_stencil_alpha_state(pipe, state);;
00514 
00515    trace_dump_call_end();
00516 }

static void trace_context_bind_fs_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 561 of file tr_context.c.

References pipe_context::bind_fs_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00563 {
00564    struct trace_context *tr_ctx = trace_context(_pipe);
00565    struct pipe_context *pipe = tr_ctx->pipe;
00566 
00567    trace_dump_call_begin("pipe_context", "bind_fs_state");
00568 
00569    trace_dump_arg(ptr, pipe);
00570    trace_dump_arg(ptr, state);
00571 
00572    pipe->bind_fs_state(pipe, state);;
00573 
00574    trace_dump_call_end();
00575 }

static void trace_context_bind_rasterizer_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 443 of file tr_context.c.

References pipe_context::bind_rasterizer_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00445 {
00446    struct trace_context *tr_ctx = trace_context(_pipe);
00447    struct pipe_context *pipe = tr_ctx->pipe;
00448 
00449    trace_dump_call_begin("pipe_context", "bind_rasterizer_state");
00450 
00451    trace_dump_arg(ptr, pipe);
00452    trace_dump_arg(ptr, state);
00453 
00454    pipe->bind_rasterizer_state(pipe, state);;
00455 
00456    trace_dump_call_end();
00457 }

static void trace_context_bind_sampler_states ( struct pipe_context _pipe,
unsigned  num_states,
void **  states 
) [static]

Definition at line 383 of file tr_context.c.

References pipe_context::bind_sampler_states, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_arg_array, trace_dump_call_begin(), and trace_dump_call_end().

00385 {
00386    struct trace_context *tr_ctx = trace_context(_pipe);
00387    struct pipe_context *pipe = tr_ctx->pipe;
00388 
00389    trace_dump_call_begin("pipe_context", "bind_sampler_states");
00390 
00391    trace_dump_arg(ptr, pipe);
00392    trace_dump_arg(uint, num_states);
00393    trace_dump_arg_array(ptr, states, num_states);
00394 
00395    pipe->bind_sampler_states(pipe, num_states, states);;
00396 
00397    trace_dump_call_end();
00398 }

static void trace_context_bind_vs_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 620 of file tr_context.c.

References pipe_context::bind_vs_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00622 {
00623    struct trace_context *tr_ctx = trace_context(_pipe);
00624    struct pipe_context *pipe = tr_ctx->pipe;
00625 
00626    trace_dump_call_begin("pipe_context", "bind_vs_state");
00627 
00628    trace_dump_arg(ptr, pipe);
00629    trace_dump_arg(ptr, state);
00630 
00631    pipe->bind_vs_state(pipe, state);;
00632 
00633    trace_dump_call_end();
00634 }

static void trace_context_clear ( struct pipe_context _pipe,
struct pipe_surface surface,
unsigned  clearValue 
) [static]

Definition at line 937 of file tr_context.c.

References pipe_context::clear, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_surface_unwrap().

00940 {
00941    struct trace_context *tr_ctx = trace_context(_pipe);
00942    struct pipe_context *pipe = tr_ctx->pipe;
00943 
00944    surface = trace_surface_unwrap(tr_ctx, surface);
00945 
00946    trace_dump_call_begin("pipe_context", "clear");
00947 
00948    trace_dump_arg(ptr, pipe);
00949    trace_dump_arg(ptr, surface);
00950    trace_dump_arg(uint, clearValue);
00951 
00952    pipe->clear(pipe, surface, clearValue);;
00953 
00954    trace_dump_call_end();
00955 }

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 }

static void* trace_context_create_blend_state ( struct pipe_context _pipe,
const struct pipe_blend_state state 
) [static]

Definition at line 301 of file tr_context.c.

References pipe_context::create_blend_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00303 {
00304    struct trace_context *tr_ctx = trace_context(_pipe);
00305    struct pipe_context *pipe = tr_ctx->pipe;
00306    void * result;
00307 
00308    trace_dump_call_begin("pipe_context", "create_blend_state");
00309 
00310    trace_dump_arg(ptr, pipe);
00311    trace_dump_arg(blend_state, state);
00312 
00313    result = pipe->create_blend_state(pipe, state);;
00314 
00315    trace_dump_ret(ptr, result);
00316 
00317    trace_dump_call_end();
00318    
00319    return result;
00320 }

static void* trace_context_create_depth_stencil_alpha_state ( struct pipe_context _pipe,
const struct pipe_depth_stencil_alpha_state state 
) [static]

Definition at line 479 of file tr_context.c.

References pipe_context::create_depth_stencil_alpha_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00481 {
00482    struct trace_context *tr_ctx = trace_context(_pipe);
00483    struct pipe_context *pipe = tr_ctx->pipe;
00484    void * result;
00485 
00486    trace_dump_call_begin("pipe_context", "create_depth_stencil_alpha_state");
00487 
00488    result = pipe->create_depth_stencil_alpha_state(pipe, state);;
00489 
00490    trace_dump_arg(ptr, pipe);
00491    trace_dump_arg(depth_stencil_alpha_state, state);
00492    
00493    trace_dump_ret(ptr, result);
00494 
00495    trace_dump_call_end();
00496    
00497    return result;
00498 }

static void* trace_context_create_fs_state ( struct pipe_context _pipe,
const struct pipe_shader_state state 
) [static]

Definition at line 538 of file tr_context.c.

References pipe_context::create_fs_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00540 {
00541    struct trace_context *tr_ctx = trace_context(_pipe);
00542    struct pipe_context *pipe = tr_ctx->pipe;
00543    void * result;
00544 
00545    trace_dump_call_begin("pipe_context", "create_fs_state");
00546 
00547    trace_dump_arg(ptr, pipe);
00548    trace_dump_arg(shader_state, state);
00549 
00550    result = pipe->create_fs_state(pipe, state);;
00551 
00552    trace_dump_ret(ptr, result);
00553    
00554    trace_dump_call_end();
00555    
00556    return result;
00557 }

static struct pipe_query* trace_context_create_query ( struct pipe_context _pipe,
unsigned  query_type 
) [static, read]

Definition at line 197 of file tr_context.c.

References pipe_context::create_query, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00199 {
00200    struct trace_context *tr_ctx = trace_context(_pipe);
00201    struct pipe_context *pipe = tr_ctx->pipe;
00202    struct pipe_query *result;
00203 
00204    trace_dump_call_begin("pipe_context", "create_query");
00205 
00206    trace_dump_arg(ptr, pipe);
00207    trace_dump_arg(uint, query_type);
00208 
00209    result = pipe->create_query(pipe, query_type);;
00210 
00211    trace_dump_ret(ptr, result);
00212    
00213    trace_dump_call_end();
00214    
00215    return result;
00216 }

static void* trace_context_create_rasterizer_state ( struct pipe_context _pipe,
const struct pipe_rasterizer_state state 
) [static]

Definition at line 420 of file tr_context.c.

References pipe_context::create_rasterizer_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00422 {
00423    struct trace_context *tr_ctx = trace_context(_pipe);
00424    struct pipe_context *pipe = tr_ctx->pipe;
00425    void * result;
00426 
00427    trace_dump_call_begin("pipe_context", "create_rasterizer_state");
00428 
00429    trace_dump_arg(ptr, pipe);
00430    trace_dump_arg(rasterizer_state, state);
00431 
00432    result = pipe->create_rasterizer_state(pipe, state);;
00433 
00434    trace_dump_ret(ptr, result);
00435    
00436    trace_dump_call_end();
00437    
00438    return result;
00439 }

static void* trace_context_create_sampler_state ( struct pipe_context _pipe,
const struct pipe_sampler_state state 
) [static]

Definition at line 360 of file tr_context.c.

References pipe_context::create_sampler_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00362 {
00363    struct trace_context *tr_ctx = trace_context(_pipe);
00364    struct pipe_context *pipe = tr_ctx->pipe;
00365    void * result;
00366 
00367    trace_dump_call_begin("pipe_context", "create_sampler_state");
00368 
00369    trace_dump_arg(ptr, pipe);
00370    trace_dump_arg(sampler_state, state);
00371 
00372    result = pipe->create_sampler_state(pipe, state);;
00373 
00374    trace_dump_ret(ptr, result);
00375    
00376    trace_dump_call_end();
00377    
00378    return result;
00379 }

static void* trace_context_create_vs_state ( struct pipe_context _pipe,
const struct pipe_shader_state state 
) [static]

Definition at line 597 of file tr_context.c.

References pipe_context::create_vs_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00599 {
00600    struct trace_context *tr_ctx = trace_context(_pipe);
00601    struct pipe_context *pipe = tr_ctx->pipe;
00602    void * result;
00603 
00604    trace_dump_call_begin("pipe_context", "create_vs_state");
00605 
00606    trace_dump_arg(ptr, pipe);
00607    trace_dump_arg(shader_state, state);
00608 
00609    result = pipe->create_vs_state(pipe, state);;
00610 
00611    trace_dump_ret(ptr, result);
00612    
00613    trace_dump_call_end();
00614    
00615    return result;
00616 }

static void trace_context_delete_blend_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 342 of file tr_context.c.

References pipe_context::delete_blend_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00344 {
00345    struct trace_context *tr_ctx = trace_context(_pipe);
00346    struct pipe_context *pipe = tr_ctx->pipe;
00347 
00348    trace_dump_call_begin("pipe_context", "delete_blend_state");
00349 
00350    trace_dump_arg(ptr, pipe);
00351    trace_dump_arg(ptr, state);
00352 
00353    pipe->delete_blend_state(pipe, state);;
00354 
00355    trace_dump_call_end();
00356 }

static void trace_context_delete_depth_stencil_alpha_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 520 of file tr_context.c.

References pipe_context::delete_depth_stencil_alpha_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00522 {
00523    struct trace_context *tr_ctx = trace_context(_pipe);
00524    struct pipe_context *pipe = tr_ctx->pipe;
00525 
00526    trace_dump_call_begin("pipe_context", "delete_depth_stencil_alpha_state");
00527 
00528    trace_dump_arg(ptr, pipe);
00529    trace_dump_arg(ptr, state);
00530 
00531    pipe->delete_depth_stencil_alpha_state(pipe, state);;
00532 
00533    trace_dump_call_end();
00534 }

static void trace_context_delete_fs_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 579 of file tr_context.c.

References pipe_context::delete_fs_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00581 {
00582    struct trace_context *tr_ctx = trace_context(_pipe);
00583    struct pipe_context *pipe = tr_ctx->pipe;
00584 
00585    trace_dump_call_begin("pipe_context", "delete_fs_state");
00586 
00587    trace_dump_arg(ptr, pipe);
00588    trace_dump_arg(ptr, state);
00589 
00590    pipe->delete_fs_state(pipe, state);;
00591 
00592    trace_dump_call_end();
00593 }

static void trace_context_delete_rasterizer_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 461 of file tr_context.c.

References pipe_context::delete_rasterizer_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00463 {
00464    struct trace_context *tr_ctx = trace_context(_pipe);
00465    struct pipe_context *pipe = tr_ctx->pipe;
00466 
00467    trace_dump_call_begin("pipe_context", "delete_rasterizer_state");
00468 
00469    trace_dump_arg(ptr, pipe);
00470    trace_dump_arg(ptr, state);
00471 
00472    pipe->delete_rasterizer_state(pipe, state);;
00473 
00474    trace_dump_call_end();
00475 }

static void trace_context_delete_sampler_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 402 of file tr_context.c.

References pipe_context::delete_sampler_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00404 {
00405    struct trace_context *tr_ctx = trace_context(_pipe);
00406    struct pipe_context *pipe = tr_ctx->pipe;
00407 
00408    trace_dump_call_begin("pipe_context", "delete_sampler_state");
00409 
00410    trace_dump_arg(ptr, pipe);
00411    trace_dump_arg(ptr, state);
00412 
00413    pipe->delete_sampler_state(pipe, state);;
00414 
00415    trace_dump_call_end();
00416 }

static void trace_context_delete_vs_state ( struct pipe_context _pipe,
void *  state 
) [static]

Definition at line 638 of file tr_context.c.

References pipe_context::delete_vs_state, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00640 {
00641    struct trace_context *tr_ctx = trace_context(_pipe);
00642    struct pipe_context *pipe = tr_ctx->pipe;
00643 
00644    trace_dump_call_begin("pipe_context", "delete_vs_state");
00645 
00646    trace_dump_arg(ptr, pipe);
00647    trace_dump_arg(ptr, state);
00648 
00649    pipe->delete_vs_state(pipe, state);;
00650 
00651    trace_dump_call_end();
00652 }

static void trace_context_destroy ( struct pipe_context _pipe  )  [static]

Definition at line 981 of file tr_context.c.

References pipe_context::destroy, FREE, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00982 {
00983    struct trace_context *tr_ctx = trace_context(_pipe);
00984    struct pipe_context *pipe = tr_ctx->pipe;
00985 
00986    trace_dump_call_begin("pipe_context", "destroy");
00987 
00988    trace_dump_arg(ptr, pipe);
00989 
00990    pipe->destroy(pipe);
00991    
00992    trace_dump_call_end();
00993 
00994    FREE(tr_ctx);
00995 }

static void trace_context_destroy_query ( struct pipe_context _pipe,
struct pipe_query *  query 
) [static]

Definition at line 220 of file tr_context.c.

References pipe_context::destroy_query, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00222 {
00223    struct trace_context *tr_ctx = trace_context(_pipe);
00224    struct pipe_context *pipe = tr_ctx->pipe;
00225 
00226    trace_dump_call_begin("pipe_context", "destroy_query");
00227 
00228    trace_dump_arg(ptr, pipe);
00229    trace_dump_arg(ptr, query);
00230 
00231    pipe->destroy_query(pipe, query);;
00232 
00233    trace_dump_call_end();
00234 }

static boolean trace_context_draw_arrays ( struct pipe_context _pipe,
unsigned  mode,
unsigned  start,
unsigned  count 
) [static]

Definition at line 101 of file tr_context.c.

References pipe_context::draw_arrays, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00103 {
00104    struct trace_context *tr_ctx = trace_context(_pipe);
00105    struct pipe_context *pipe = tr_ctx->pipe;
00106    boolean result;
00107 
00108    trace_dump_call_begin("pipe_context", "draw_arrays");
00109 
00110    trace_dump_arg(ptr, pipe);
00111    trace_dump_arg(uint, mode);
00112    trace_dump_arg(uint, start);
00113    trace_dump_arg(uint, count);
00114 
00115    result = pipe->draw_arrays(pipe, mode, start, count);;
00116 
00117    trace_dump_ret(bool, result);
00118    
00119    trace_dump_call_end();
00120    
00121    return result;
00122 }

static boolean trace_context_draw_elements ( struct pipe_context _pipe,
struct pipe_buffer indexBuffer,
unsigned  indexSize,
unsigned  mode,
unsigned  start,
unsigned  count 
) [static]

Definition at line 126 of file tr_context.c.

References pipe_context::draw_elements, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), trace_dump_ret, trace_winsys_user_buffer_update(), and pipe_context::winsys.

00130 {
00131    struct trace_context *tr_ctx = trace_context(_pipe);
00132    struct pipe_context *pipe = tr_ctx->pipe;
00133    boolean result;
00134 
00135    trace_winsys_user_buffer_update(_pipe->winsys, indexBuffer);
00136 
00137    trace_dump_call_begin("pipe_context", "draw_elements");
00138 
00139    trace_dump_arg(ptr, pipe);
00140    trace_dump_arg(ptr, indexBuffer);
00141    trace_dump_arg(uint, indexSize);
00142    trace_dump_arg(uint, mode);
00143    trace_dump_arg(uint, start);
00144    trace_dump_arg(uint, count);
00145 
00146    result = pipe->draw_elements(pipe, indexBuffer, indexSize, mode, start, count);;
00147 
00148    trace_dump_ret(bool, result);
00149    
00150    trace_dump_call_end();
00151    
00152    return result;
00153 }

static boolean trace_context_draw_range_elements ( struct pipe_context _pipe,
struct pipe_buffer indexBuffer,
unsigned  indexSize,
unsigned  minIndex,
unsigned  maxIndex,
unsigned  mode,
unsigned  start,
unsigned  count 
) [static]

Definition at line 157 of file tr_context.c.

References pipe_context::draw_range_elements, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), trace_dump_ret, trace_winsys_user_buffer_update(), and pipe_context::winsys.

00165 {
00166    struct trace_context *tr_ctx = trace_context(_pipe);
00167    struct pipe_context *pipe = tr_ctx->pipe;
00168    boolean result;
00169 
00170    trace_winsys_user_buffer_update(_pipe->winsys, indexBuffer);
00171 
00172    trace_dump_call_begin("pipe_context", "draw_range_elements");
00173 
00174    trace_dump_arg(ptr, pipe);
00175    trace_dump_arg(ptr, indexBuffer);
00176    trace_dump_arg(uint, indexSize);
00177    trace_dump_arg(uint, minIndex);
00178    trace_dump_arg(uint, maxIndex);
00179    trace_dump_arg(uint, mode);
00180    trace_dump_arg(uint, start);
00181    trace_dump_arg(uint, count);
00182 
00183    result = pipe->draw_range_elements(pipe, 
00184                                       indexBuffer, 
00185                                       indexSize, minIndex, maxIndex, 
00186                                       mode, start, count);
00187    
00188    trace_dump_ret(bool, result);
00189    
00190    trace_dump_call_end();
00191    
00192    return result;
00193 }

static void trace_context_end_query ( struct pipe_context _pipe,
struct pipe_query *  query 
) [static]

Definition at line 256 of file tr_context.c.

References pipe_context::end_query, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00258 {
00259    struct trace_context *tr_ctx = trace_context(_pipe);
00260    struct pipe_context *pipe = tr_ctx->pipe;
00261 
00262    trace_dump_call_begin("pipe_context", "end_query");
00263 
00264    trace_dump_arg(ptr, pipe);
00265    trace_dump_arg(ptr, query);
00266 
00267    pipe->end_query(pipe, query);
00268 
00269    trace_dump_call_end();
00270 }

static void trace_context_flush ( struct pipe_context _pipe,
unsigned  flags,
struct pipe_fence_handle **  fence 
) [static]

Definition at line 959 of file tr_context.c.

References pipe_context::flush, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00962 {
00963    struct trace_context *tr_ctx = trace_context(_pipe);
00964    struct pipe_context *pipe = tr_ctx->pipe;
00965 
00966    trace_dump_call_begin("pipe_context", "flush");
00967 
00968    trace_dump_arg(ptr, pipe);
00969    trace_dump_arg(uint, flags);
00970 
00971    pipe->flush(pipe, flags, fence);;
00972 
00973    if(fence)
00974       trace_dump_ret(ptr, *fence);
00975 
00976    trace_dump_call_end();
00977 }

static boolean trace_context_get_query_result ( struct pipe_context _pipe,
struct pipe_query *  query,
boolean  wait,
uint64 presult 
) [static]

Definition at line 274 of file tr_context.c.

References pipe_context::get_query_result, trace_context::pipe, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_ret.

00278 {
00279    struct trace_context *tr_ctx = trace_context(_pipe);
00280    struct pipe_context *pipe = tr_ctx->pipe;
00281    uint64 result;
00282    boolean _result;
00283 
00284    trace_dump_call_begin("pipe_context", "get_query_result");
00285 
00286    trace_dump_arg(ptr, pipe);
00287 
00288    _result = pipe->get_query_result(pipe, query, wait, presult);;
00289    result = *presult;
00290 
00291    trace_dump_arg(uint, result);
00292    trace_dump_ret(bool, _result);
00293    
00294    trace_dump_call_end();
00295    
00296    return _result;
00297 }

static void trace_context_set_blend_color ( struct pipe_context _pipe,
const struct pipe_blend_color state 
) [static]

Definition at line 656 of file tr_context.c.

References trace_context::pipe, pipe_context::set_blend_color, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00658 {
00659    struct trace_context *tr_ctx = trace_context(_pipe);
00660    struct pipe_context *pipe = tr_ctx->pipe;
00661 
00662    trace_dump_call_begin("pipe_context", "set_blend_color");
00663 
00664    trace_dump_arg(ptr, pipe);
00665    trace_dump_arg(blend_color, state);
00666 
00667    pipe->set_blend_color(pipe, state);;
00668 
00669    trace_dump_call_end();
00670 }

static void trace_context_set_clip_state ( struct pipe_context _pipe,
const struct pipe_clip_state state 
) [static]

Definition at line 674 of file tr_context.c.

References trace_context::pipe, pipe_context::set_clip_state, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00676 {
00677    struct trace_context *tr_ctx = trace_context(_pipe);
00678    struct pipe_context *pipe = tr_ctx->pipe;
00679 
00680    trace_dump_call_begin("pipe_context", "set_clip_state");
00681 
00682    trace_dump_arg(ptr, pipe);
00683    trace_dump_arg(clip_state, state);
00684 
00685    pipe->set_clip_state(pipe, state);;
00686 
00687    trace_dump_call_end();
00688 }

static void trace_context_set_constant_buffer ( struct pipe_context _pipe,
uint  shader,
uint  index,
const struct pipe_constant_buffer buffer 
) [static]

Definition at line 692 of file tr_context.c.

References trace_context::pipe, pipe_context::set_constant_buffer, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), trace_winsys_user_buffer_update(), and pipe_context::winsys.

00695 {
00696    struct trace_context *tr_ctx = trace_context(_pipe);
00697    struct pipe_context *pipe = tr_ctx->pipe;
00698 
00699    trace_winsys_user_buffer_update(_pipe->winsys, (struct pipe_buffer *)buffer);
00700    
00701    trace_dump_call_begin("pipe_context", "set_constant_buffer");
00702 
00703    trace_dump_arg(ptr, pipe);
00704    trace_dump_arg(uint, shader);
00705    trace_dump_arg(uint, index);
00706    trace_dump_arg(constant_buffer, buffer);
00707 
00708    pipe->set_constant_buffer(pipe, shader, index, buffer);;
00709 
00710    trace_dump_call_end();
00711 }

static void trace_context_set_edgeflags ( struct pipe_context _pipe,
const unsigned *  bitfield 
) [static]

Definition at line 82 of file tr_context.c.

References trace_context::pipe, pipe_context::set_edgeflags, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00084 {
00085    struct trace_context *tr_ctx = trace_context(_pipe);
00086    struct pipe_context *pipe = tr_ctx->pipe;
00087 
00088    trace_dump_call_begin("pipe_context", "set_edgeflags");
00089    
00090    trace_dump_arg(ptr, pipe);
00091    /* FIXME: we don't know how big this array is */
00092    trace_dump_arg(ptr, bitfield);
00093 
00094    pipe->set_edgeflags(pipe, bitfield);;
00095 
00096    trace_dump_call_end();
00097 }

static void trace_context_set_framebuffer_state ( struct pipe_context _pipe,
const struct pipe_framebuffer_state state 
) [static]

Definition at line 715 of file tr_context.c.

References pipe_framebuffer_state::cbufs, pipe_framebuffer_state::num_cbufs, trace_context::pipe, PIPE_MAX_COLOR_BUFS, pipe_context::set_framebuffer_state, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), trace_surface_unwrap(), and pipe_framebuffer_state::zsbuf.

00717 {
00718    struct trace_context *tr_ctx = trace_context(_pipe);
00719    struct pipe_context *pipe = tr_ctx->pipe;
00720    struct pipe_framebuffer_state unwrapped_state;
00721    unsigned i;
00722    
00723    /* Unwrap the input state */
00724    memcpy(&unwrapped_state, state, sizeof(unwrapped_state));
00725    for(i = 0; i < state->num_cbufs; ++i)
00726       unwrapped_state.cbufs[i] = trace_surface_unwrap(tr_ctx, state->cbufs[i]);
00727    for(i = state->num_cbufs; i < PIPE_MAX_COLOR_BUFS; ++i)
00728       unwrapped_state.cbufs[i] = NULL;
00729    unwrapped_state.zsbuf = trace_surface_unwrap(tr_ctx, state->zsbuf);
00730    state = &unwrapped_state;
00731    
00732    trace_dump_call_begin("pipe_context", "set_framebuffer_state");
00733 
00734    trace_dump_arg(ptr, pipe);
00735    trace_dump_arg(framebuffer_state, state);
00736 
00737    pipe->set_framebuffer_state(pipe, state);;
00738 
00739    trace_dump_call_end();
00740 }

static void trace_context_set_polygon_stipple ( struct pipe_context _pipe,
const struct pipe_poly_stipple state 
) [static]

Definition at line 744 of file tr_context.c.

References trace_context::pipe, pipe_context::set_polygon_stipple, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00746 {
00747    struct trace_context *tr_ctx = trace_context(_pipe);
00748    struct pipe_context *pipe = tr_ctx->pipe;
00749 
00750    trace_dump_call_begin("pipe_context", "set_polygon_stipple");
00751 
00752    trace_dump_arg(ptr, pipe);
00753    trace_dump_arg(poly_stipple, state);
00754 
00755    pipe->set_polygon_stipple(pipe, state);;
00756 
00757    trace_dump_call_end();
00758 }

static void trace_context_set_sampler_textures ( struct pipe_context _pipe,
unsigned  num_textures,
struct pipe_texture **  textures 
) [static]

Definition at line 798 of file tr_context.c.

References trace_context::pipe, PIPE_MAX_SAMPLERS, pipe_context::set_sampler_textures, trace_context(), trace_dump_arg, trace_dump_arg_array, trace_dump_call_begin(), trace_dump_call_end(), and trace_texture_unwrap().

00801 {
00802    struct trace_context *tr_ctx = trace_context(_pipe);
00803    struct pipe_context *pipe = tr_ctx->pipe;
00804    struct pipe_texture *unwrapped_textures[PIPE_MAX_SAMPLERS];
00805    unsigned i;
00806    
00807    for(i = 0; i < num_textures; ++i)
00808       unwrapped_textures[i] = trace_texture_unwrap(tr_ctx, textures[i]);
00809    textures = unwrapped_textures;
00810 
00811    trace_dump_call_begin("pipe_context", "set_sampler_textures");
00812 
00813    trace_dump_arg(ptr, pipe);
00814    trace_dump_arg(uint, num_textures);
00815    trace_dump_arg_array(ptr, textures, num_textures);
00816 
00817    pipe->set_sampler_textures(pipe, num_textures, textures);;
00818 
00819    trace_dump_call_end();
00820 }

static void trace_context_set_scissor_state ( struct pipe_context _pipe,
const struct pipe_scissor_state state 
) [static]

Definition at line 762 of file tr_context.c.

References trace_context::pipe, pipe_context::set_scissor_state, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00764 {
00765    struct trace_context *tr_ctx = trace_context(_pipe);
00766    struct pipe_context *pipe = tr_ctx->pipe;
00767 
00768    trace_dump_call_begin("pipe_context", "set_scissor_state");
00769 
00770    trace_dump_arg(ptr, pipe);
00771    trace_dump_arg(scissor_state, state);
00772 
00773    pipe->set_scissor_state(pipe, state);;
00774 
00775    trace_dump_call_end();
00776 }

static void trace_context_set_vertex_buffers ( struct pipe_context _pipe,
unsigned  num_buffers,
const struct pipe_vertex_buffer buffers 
) [static]

Definition at line 824 of file tr_context.c.

References pipe_vertex_buffer::buffer, trace_context::pipe, pipe_context::set_vertex_buffers, trace_context(), trace_dump_arg, trace_dump_arg_begin(), trace_dump_arg_end(), trace_dump_call_begin(), trace_dump_call_end(), trace_dump_struct_array, trace_winsys_user_buffer_update(), and pipe_context::winsys.

00827 {
00828    struct trace_context *tr_ctx = trace_context(_pipe);
00829    struct pipe_context *pipe = tr_ctx->pipe;
00830    unsigned i;
00831 
00832    for(i = 0; i < num_buffers; ++i)
00833       trace_winsys_user_buffer_update(_pipe->winsys, buffers[i].buffer);
00834 
00835    trace_dump_call_begin("pipe_context", "set_vertex_buffers");
00836 
00837    trace_dump_arg(ptr, pipe);
00838    trace_dump_arg(uint, num_buffers);
00839    
00840    trace_dump_arg_begin("buffers");
00841    trace_dump_struct_array(vertex_buffer, buffers, num_buffers);
00842    trace_dump_arg_end();
00843 
00844    pipe->set_vertex_buffers(pipe, num_buffers, buffers);;
00845 
00846    trace_dump_call_end();
00847 }

static void trace_context_set_vertex_elements ( struct pipe_context _pipe,
unsigned  num_elements,
const struct pipe_vertex_element elements 
) [static]

Definition at line 851 of file tr_context.c.

References trace_context::pipe, pipe_context::set_vertex_elements, trace_context(), trace_dump_arg, trace_dump_arg_begin(), trace_dump_arg_end(), trace_dump_call_begin(), trace_dump_call_end(), and trace_dump_struct_array.

00854 {
00855    struct trace_context *tr_ctx = trace_context(_pipe);
00856    struct pipe_context *pipe = tr_ctx->pipe;
00857 
00858    trace_dump_call_begin("pipe_context", "set_vertex_elements");
00859 
00860    trace_dump_arg(ptr, pipe);
00861    trace_dump_arg(uint, num_elements);
00862 
00863    trace_dump_arg_begin("elements");
00864    trace_dump_struct_array(vertex_element, elements, num_elements);
00865    trace_dump_arg_end();
00866 
00867    pipe->set_vertex_elements(pipe, num_elements, elements);;
00868 
00869    trace_dump_call_end();
00870 }

static void trace_context_set_viewport_state ( struct pipe_context _pipe,
const struct pipe_viewport_state state 
) [static]

Definition at line 780 of file tr_context.c.

References trace_context::pipe, pipe_context::set_viewport_state, trace_context(), trace_dump_arg, trace_dump_call_begin(), and trace_dump_call_end().

00782 {
00783    struct trace_context *tr_ctx = trace_context(_pipe);
00784    struct pipe_context *pipe = tr_ctx->pipe;
00785 
00786    trace_dump_call_begin("pipe_context", "set_viewport_state");
00787 
00788    trace_dump_arg(ptr, pipe);
00789    trace_dump_arg(viewport_state, state);
00790 
00791    pipe->set_viewport_state(pipe, state);;
00792 
00793    trace_dump_call_end();
00794 }

static void trace_context_surface_copy ( struct pipe_context _pipe,
boolean  do_flip,
struct pipe_surface dest,
unsigned  destx,
unsigned  desty,
struct pipe_surface src,
unsigned  srcx,
unsigned  srcy,
unsigned  width,
unsigned  height 
) [static]

Definition at line 874 of file tr_context.c.

References trace_context::pipe, pipe_context::surface_copy, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_surface_unwrap().

00881 {
00882    struct trace_context *tr_ctx = trace_context(_pipe);
00883    struct pipe_context *pipe = tr_ctx->pipe;
00884 
00885    dest = trace_surface_unwrap(tr_ctx, dest);
00886    src = trace_surface_unwrap(tr_ctx, src);
00887    
00888    trace_dump_call_begin("pipe_context", "surface_copy");
00889 
00890    trace_dump_arg(ptr, pipe);
00891    trace_dump_arg(bool, do_flip);
00892    trace_dump_arg(ptr, dest);
00893    trace_dump_arg(uint, destx);
00894    trace_dump_arg(uint, desty);
00895    trace_dump_arg(ptr, src);
00896    trace_dump_arg(uint, srcx);
00897    trace_dump_arg(uint, srcy);
00898    trace_dump_arg(uint, width);
00899    trace_dump_arg(uint, height);
00900 
00901    pipe->surface_copy(pipe, do_flip, 
00902                       dest, destx, desty, 
00903                       src, srcx, srcy, width, height);
00904    
00905    trace_dump_call_end();
00906 }

static void trace_context_surface_fill ( struct pipe_context _pipe,
struct pipe_surface dst,
unsigned  dstx,
unsigned  dsty,
unsigned  width,
unsigned  height,
unsigned  value 
) [static]

Definition at line 910 of file tr_context.c.

References trace_context::pipe, pipe_context::surface_fill, trace_context(), trace_dump_arg, trace_dump_call_begin(), trace_dump_call_end(), and trace_surface_unwrap().

00915 {
00916    struct trace_context *tr_ctx = trace_context(_pipe);
00917    struct pipe_context *pipe = tr_ctx->pipe;
00918 
00919    dst = trace_surface_unwrap(tr_ctx, dst);
00920 
00921    trace_dump_call_begin("pipe_context", "surface_fill");
00922 
00923    trace_dump_arg(ptr, pipe);
00924    trace_dump_arg(ptr, dst);
00925    trace_dump_arg(uint, dstx);
00926    trace_dump_arg(uint, dsty);
00927    trace_dump_arg(uint, width);
00928    trace_dump_arg(uint, height);
00929 
00930    pipe->surface_fill(pipe, dst, dstx, dsty, width, height, value);;
00931 
00932    trace_dump_call_end();
00933 }

static struct pipe_surface* trace_surface_unwrap ( struct trace_context tr_ctx,
struct pipe_surface surface 
) [static, read]

Definition at line 58 of file tr_context.c.

References assert, trace_context::base, trace_screen::screen, pipe_texture::screen, pipe_context::screen, trace_surface::surface, pipe_surface::texture, trace_screen(), trace_surface(), and trace_texture().

00060 {
00061    struct trace_screen *tr_scr = trace_screen(tr_ctx->base.screen); 
00062    struct trace_texture *tr_tex;
00063    struct trace_surface *tr_surf;
00064    
00065    if(!surface)
00066       return NULL;
00067 
00068    assert(surface->texture);
00069    if(!surface->texture)
00070       return surface;
00071    
00072    tr_tex = trace_texture(tr_scr, surface->texture);
00073    tr_surf = trace_surface(tr_tex, surface);
00074    
00075    assert(tr_surf->surface);
00076    assert(tr_surf->surface->texture->screen == tr_scr->screen);
00077    return tr_surf->surface;
00078 }

static struct pipe_texture* trace_texture_unwrap ( struct trace_context tr_ctx,
struct pipe_texture texture 
) [static, read]

Definition at line 40 of file tr_context.c.

References assert, trace_context::base, trace_screen::screen, pipe_texture::screen, pipe_context::screen, trace_texture::texture, trace_screen(), and trace_texture().

00042 {
00043    struct trace_screen *tr_scr = trace_screen(tr_ctx->base.screen); 
00044    struct trace_texture *tr_tex;
00045    
00046    if(!texture)
00047       return NULL;
00048    
00049    tr_tex = trace_texture(tr_scr, texture);
00050    
00051    assert(tr_tex->texture);
00052    assert(tr_tex->texture->screen == tr_scr->screen);
00053    return tr_tex->texture;
00054 }


Generated on Tue Sep 29 06:25:42 2009 for Gallium3D by  doxygen 1.5.4