nvc0: fix wrong use of BLIT_SRC_Y_INT for 2D texture copy
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 6 Jul 2015 20:06:08 +0000 (22:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 8 Jul 2015 19:03:23 +0000 (21:03 +0200)
According to nv50, this should be src->ms_y instead of src->ms_x. This
code is here since 2012, so it's probably a typo error which has never
been detected since a long time. I didn't do a full piglit run to check
if it fixes some other weird issues.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c

index ac4dd25bcfa4204ef8a65dc991b631470e2cc74a..3c17f1663ed5af816aa4e4ded97f89362319d005 100644 (file)
@@ -189,7 +189,7 @@ nvc0_2d_texture_do_copy(struct nouveau_pushbuf *push,
    PUSH_DATA (push, 0);
    PUSH_DATA (push, sx << src->ms_x);
    PUSH_DATA (push, 0);
-   PUSH_DATA (push, sy << src->ms_x);
+   PUSH_DATA (push, sy << src->ms_y);
 
    return 0;
 }