i965/miptree: Extend the sRGB-blending WA to future platforms
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 30 Mar 2018 05:14:09 +0000 (22:14 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 24 Apr 2018 20:41:14 +0000 (13:41 -0700)
The blending issue seems to be present on CNL as well.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index b00368f8f9f7fc2425afbd6720f742d8a83e6f18..93a91fd8081495bdfec87573a73ff86220c618ab 100644 (file)
@@ -2737,11 +2737,11 @@ intel_miptree_render_aux_usage(struct brw_context *brw,
          return ISL_AUX_USAGE_NONE;
       }
 
-      /* gen9 hardware technically supports non-0/1 clear colors with sRGB
+      /* gen9+ hardware technically supports non-0/1 clear colors with sRGB
        * formats.  However, there are issues with blending where it doesn't
        * properly apply the sRGB curve to the clear color when blending.
        */
-      if (devinfo->gen == 9 && blend_enabled &&
+      if (devinfo->gen >= 9 && blend_enabled &&
           isl_format_is_srgb(render_format) &&
           !isl_color_value_is_zero_one(mt->fast_clear_color, render_format))
          return ISL_AUX_USAGE_NONE;