st/vega: No flipping in vg_prepare_blend_surface.
authorChia-I Wu <olv@lunarg.com>
Thu, 25 Nov 2010 05:01:17 +0000 (13:01 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 25 Nov 2010 05:33:59 +0000 (13:33 +0800)
The blend sampler view is addressed with unnormalized coordinates in the
fragment shader.  It should have the same orientation as the surface
does.

src/gallium/state_trackers/vega/vg_context.c

index 99e444affdffe955faec64216143b6359a2ddcd0..bd82a81e3ddc5ab807c2f9227cf24042ac8a800a 100644 (file)
@@ -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,