intel/blorp: Adjust intra-tile x when faking rgb with red-only
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Sat, 19 Aug 2017 06:22:22 +0000 (09:22 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 21 Aug 2017 06:55:08 +0000 (09:55 +0300)
v2 (Jason): Adjust directly in surf_fake_rgb_with_red()

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101910

CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c

index ed005163733c7a2c3d6f11a2401adfd3ae9f3593..35008cbbb0ae4ea1ab961cbdc54f9c2bd6a0b9f5 100644 (file)
@@ -1549,6 +1549,7 @@ surf_fake_rgb_with_red(const struct isl_device *isl_dev,
 
    info->surf.logical_level0_px.width *= 3;
    info->surf.phys_level0_sa.width *= 3;
+   info->tile_x_sa *= 3;
    *x *= 3;
    *width *= 3;