diff options
author | Nanley Chery <[email protected]> | 2018-03-29 22:14:09 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2018-04-24 13:41:14 -0700 |
commit | 129ad66dd5332159f154b3714a87e5f8d65214fa (patch) | |
tree | 827a2a000fc8f2e68b5f7f951b185a94cf513e50 | |
parent | 7ea013c6d3b515701df8a4d2a50578ee9b691272 (diff) |
i965/miptree: Extend the sRGB-blending WA to future platforms
The blending issue seems to be present on CNL as well.
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index b00368f8f9f..93a91fd8081 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -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; |