nvc0: fix 2D engine MS2 resolve
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 6 Apr 2013 12:15:54 +0000 (14:15 +0200)
committerChristoph Bumiller <christoph.bumiller@speed.at>
Fri, 12 Apr 2013 09:41:35 +0000 (11:41 +0200)
src/gallium/drivers/nvc0/nvc0_surface.c

index 3abf717a6ee48a04d017d160a4e065927836c729..4e8bb36e18ffc80bdd0fb70b2a60d89914da990a 100644 (file)
@@ -1038,8 +1038,8 @@ nvc0_blit_eng2d(struct nvc0_context *nvc0, const struct pipe_blit_info *info)
 
    if (src->base.base.nr_samples > dst->base.base.nr_samples) {
       /* center src coorinates for proper MS resolve filtering */
-      srcx += (int64_t)src->ms_x << 32;
-      srcy += (int64_t)src->ms_y << 32;
+      srcx += (int64_t)(src->ms_x + 0) << 32;
+      srcy += (int64_t)(src->ms_y + 1) << 31;
    }
 
    dstx = info->dst.box.x << dst->ms_x;