diff options
author | Chia-I Wu <[email protected]> | 2010-11-26 23:25:18 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-01 11:23:49 +0800 |
commit | e5968a5355f0165aa7f3f8e71a27df884e5a3efb (patch) | |
tree | c0f9d110daf5b4f75b5a99cdfafc1cbcda222207 /src/gallium/state_trackers/vega/renderer.h | |
parent | 6b241f532a21990a7849c5a786504f7ac4124f76 (diff) |
st/vega: Add FILTER renderer state for image filtering.
The state is designated to perform image filtering. execute_filter is
updated to make use of the state.
Diffstat (limited to 'src/gallium/state_trackers/vega/renderer.h')
-rw-r--r-- | src/gallium/state_trackers/vega/renderer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/renderer.h b/src/gallium/state_trackers/vega/renderer.h index fa0782280ad..288c17f9c89 100644 --- a/src/gallium/state_trackers/vega/renderer.h +++ b/src/gallium/state_trackers/vega/renderer.h @@ -34,6 +34,7 @@ struct renderer; struct vg_context; struct pipe_resource; +struct pipe_sampler_state; struct pipe_sampler_view; struct pipe_surface; @@ -76,6 +77,23 @@ void renderer_clear(struct renderer *renderer, void renderer_clear_end(struct renderer *renderer); +VGboolean renderer_filter_begin(struct renderer *renderer, + struct pipe_resource *dst, + VGboolean y0_top, + VGbitfield channel_mask, + const struct pipe_sampler_state **samplers, + struct pipe_sampler_view **views, + VGint num_samplers, + void *fs, + const void *const_buffer, + VGint const_buffer_len); + +void renderer_filter(struct renderer *renderer, + VGint x, VGint y, VGint w, VGint h, + VGint sx, VGint sy, VGint sw, VGint sh); + +void renderer_filter_end(struct renderer *renderer); + void renderer_draw_quad(struct renderer *, VGfloat x1, VGfloat y1, VGfloat x2, VGfloat y2, |