From: Marek Olšák <marek.ol...@amd.com>

---
 src/gallium/drivers/radeon/r600_pipe_common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c 
b/src/gallium/drivers/radeon/r600_pipe_common.c
index af4b4e8..5b54906 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -246,41 +246,41 @@ void r600_draw_rectangle(struct blitter_context *blitter,
        vb[1] = -1;
        vb[2] = 0;
        vb[3] = 1;
 
        vb[8] = -1;
        vb[9] = 1;
        vb[10] = 0;
        vb[11] = 1;
 
        vb[16] = 1;
-       vb[17] = -1;
+       vb[17] = 1;
        vb[18] = 0;
        vb[19] = 1;
 
        switch (type) {
        case UTIL_BLITTER_ATTRIB_COLOR:
                memcpy(vb+4, attrib->color, sizeof(float)*4);
                memcpy(vb+12, attrib->color, sizeof(float)*4);
                memcpy(vb+20, attrib->color, sizeof(float)*4);
                break;
        case UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW:
                vb[6] = vb[14] = vb[22] = attrib->texcoord.z;
                vb[7] = vb[15] = vb[23] = attrib->texcoord.w;
                /* fall through */
        case UTIL_BLITTER_ATTRIB_TEXCOORD_XY:
                vb[4] = attrib->texcoord.x1;
                vb[5] = attrib->texcoord.y1;
                vb[12] = attrib->texcoord.x1;
                vb[13] = attrib->texcoord.y2;
                vb[20] = attrib->texcoord.x2;
-               vb[21] = attrib->texcoord.y1;
+               vb[21] = attrib->texcoord.y2;
                break;
        default:; /* Nothing to do. */
        }
 
        /* draw */
        struct pipe_vertex_buffer vbuffer = {};
        vbuffer.buffer.resource = buf;
        vbuffer.stride = 2 * 4 * sizeof(float); /* vertex size */
        vbuffer.buffer_offset = offset;
 
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to