OSDN Git Service

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)
committerAndres Gomez <agomez@igalia.com>
Fri, 25 Aug 2017 13:03:36 +0000 (16:03 +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>
(cherry picked from commit 393ec1a5071263d300e91f43058ed3b594d41418)

src/intel/blorp/blorp_blit.c

index 691564c..d33fde1 100644 (file)
@@ -1555,6 +1555,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;