intel/blorp_blit: Fix max blit size for gen6
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 24 Dec 2016 02:41:15 +0000 (18:41 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 26 Dec 2016 16:50:21 +0000 (08:50 -0800)
Fixes ES3-CTS.gtf.GL3Tests.framebuffer_blit.framebuffer_blit_functionality_stencil_blit

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/blorp/blorp_blit.c

index 8abe3a810a1250ae538e48a10d05ff4ad2aed585..1cbd9403c98255ec30d2e157681f8a41607226d2 100644 (file)
@@ -1522,10 +1522,11 @@ static unsigned
 get_max_surface_size(const struct gen_device_info *devinfo,
                      const struct blorp_params *params)
 {
+   const unsigned max = devinfo->gen >= 7 ? 16384 : 8192;
    if (split_blorp_blit_debug && can_shrink_surfaces(params))
-      return 16384 >> 4; /* A smaller restriction when debug is enabled */
+      return max >> 4; /* A smaller restriction when debug is enabled */
    else
-      return 16384;
+      return max;
 }
 
 struct blt_axis {