From: Rafael Antognolli Date: Thu, 7 Mar 2019 16:23:08 +0000 (-0800) Subject: iris: Bring back check for srgb and fast clear color. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f6344a726b9e201189ace0a9d93b247729ad1d5;p=mesa.git iris: Bring back check for srgb and fast clear color. Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_resolve.c b/src/gallium/drivers/iris/iris_resolve.c index cd00d7fa526..08d139fcdf7 100644 --- a/src/gallium/drivers/iris/iris_resolve.c +++ b/src/gallium/drivers/iris/iris_resolve.c @@ -1371,12 +1371,10 @@ iris_resource_render_aux_usage(struct iris_context *ice, * formats. However, there are issues with blending where it doesn't * properly apply the sRGB curve to the clear color when blending. */ - /* XXX: if (devinfo->gen >= 9 && blend_enabled && isl_format_is_srgb(render_format) && - !isl_color_value_is_zero_one(res->fast_clear_color, render_format)) + !isl_color_value_is_zero_one(res->aux.clear_color, render_format)) return ISL_AUX_USAGE_NONE; - */ if (res->aux.usage == ISL_AUX_USAGE_CCS_E && format_ccs_e_compat_with_resource(devinfo, res, render_format))