diff options
author | Chia-I Wu <[email protected]> | 2010-11-25 13:01:17 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-11-25 13:33:59 +0800 |
commit | c9fb8c3bcfe86063c0903ae90100c1bfdb49cbbd (patch) | |
tree | e594b13dcfd3b2e00b71066a359d52223f7bcbc9 /src/gallium/state_trackers/vega | |
parent | 37ec090ac9025529325209b2b616a2d6ece4c367 (diff) |
st/vega: No flipping in vg_prepare_blend_surface.
The blend sampler view is addressed with unnormalized coordinates in the
fragment shader. It should have the same orientation as the surface
does.
Diffstat (limited to 'src/gallium/state_trackers/vega')
-rw-r--r-- | src/gallium/state_trackers/vega/vg_context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/vega/vg_context.c b/src/gallium/state_trackers/vega/vg_context.c index 99e444affdf..bd82a81e3dd 100644 --- a/src/gallium/state_trackers/vega/vg_context.c +++ b/src/gallium/state_trackers/vega/vg_context.c @@ -489,11 +489,10 @@ void vg_prepare_blend_surface(struct vg_context *ctx) stfb->blend_texture_view->texture, 0, 0, 0, PIPE_BIND_RENDER_TARGET); - /* flip it, because we want to use it as a sampler */ util_blit_pixels_tex(ctx->blit, view, - 0, strb->height, - strb->width, 0, + 0, 0, + strb->width, strb->height, dest_surface, 0, 0, strb->width, strb->height, |