From e31a04ea3bc957b2a43b910b1f51807b12da18a6 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 26 Nov 2010 22:56:05 +0800 Subject: st/vega: Add DRAWTEX renderer state. This state provides glDrawTex-like function. It can be used for vgSetPixels. Rather than modifying every user of the renderer, this commit instead modifies renderer_copy_surface to use DRAWTEX or COPY state internally depending on whether the destination is the framebuffer. --- src/gallium/state_trackers/vega/renderer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gallium/state_trackers/vega/renderer.h') diff --git a/src/gallium/state_trackers/vega/renderer.h b/src/gallium/state_trackers/vega/renderer.h index ddcc164b46c..cc9e3ddb1a4 100644 --- a/src/gallium/state_trackers/vega/renderer.h +++ b/src/gallium/state_trackers/vega/renderer.h @@ -51,6 +51,15 @@ void renderer_copy(struct renderer *renderer, void renderer_copy_end(struct renderer *renderer); +VGboolean renderer_drawtex_begin(struct renderer *renderer, + struct pipe_sampler_view *src); + +void renderer_drawtex(struct renderer *renderer, + VGint x, VGint y, VGint w, VGint h, + VGint sx, VGint sy, VGint sw, VGint sh); + +void renderer_drawtex_end(struct renderer *renderer); + void renderer_draw_quad(struct renderer *, VGfloat x1, VGfloat y1, VGfloat x2, VGfloat y2, -- cgit v1.2.3