From 7f6344a726b9e201189ace0a9d93b247729ad1d5 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Thu, 7 Mar 2019 08:23:08 -0800 Subject: [PATCH] iris: Bring back check for srgb and fast clear color. Reviewed-by: Kenneth Graunke --- src/gallium/drivers/iris/iris_resolve.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)) -- 2.30.2