static void identity_surface_copy(struct pipe_context *_pipe, struct pipe_surface *_dst, unsigned dstx, unsigned dsty, struct pipe_surface *_src, unsigned srcx, unsigned srcy, unsigned width, unsigned height) { struct identity_context *id_pipe = identity_context(_pipe); struct identity_surface *id_surface_dst = identity_surface(_dst); struct identity_surface *id_surface_src = identity_surface(_src); struct pipe_context *pipe = id_pipe->pipe; struct pipe_surface *dst = id_surface_dst->surface; struct pipe_surface *src = id_surface_src->surface; pipe->surface_copy(pipe, dst, dstx, dsty, src, srcx, srcy, width, height); }
static void identity_clear_depth_stencil(struct pipe_context *_pipe, struct pipe_surface *_dst, unsigned clear_flags, double depth, unsigned stencil, unsigned dstx, unsigned dsty, unsigned width, unsigned height) { struct identity_context *id_pipe = identity_context(_pipe); struct identity_surface *id_surface_dst = identity_surface(_dst); struct pipe_context *pipe = id_pipe->pipe; struct pipe_surface *dst = id_surface_dst->surface; pipe->clear_depth_stencil(pipe, dst, clear_flags, depth, stencil, dstx, dsty, width, height); }
static void identity_context_surface_destroy(struct pipe_context *_pipe, struct pipe_surface *_surf) { identity_surface_destroy(identity_context(_pipe), identity_surface(_surf)); }
static void identity_clear_render_target(struct pipe_context *_pipe, struct pipe_surface *_dst, const union pipe_color_union *color, unsigned dstx, unsigned dsty, unsigned width, unsigned height) { struct identity_context *id_pipe = identity_context(_pipe); struct identity_surface *id_surface_dst = identity_surface(_dst); struct pipe_context *pipe = id_pipe->pipe; struct pipe_surface *dst = id_surface_dst->surface; pipe->clear_render_target(pipe, dst, color, dstx, dsty, width, height); }
static void identity_surface_fill(struct pipe_context *_pipe, struct pipe_surface *_dst, unsigned dstx, unsigned dsty, unsigned width, unsigned height, unsigned value) { struct identity_context *id_pipe = identity_context(_pipe); struct identity_surface *id_surface_dst = identity_surface(_dst); struct pipe_context *pipe = id_pipe->pipe; struct pipe_surface *dst = id_surface_dst->surface; pipe->surface_fill(pipe, dst, dstx, dsty, width, height, value); }