mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
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 <jason@jlekstrand.net>
This commit is contained in:
parent
7ea013c6d3
commit
129ad66dd5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue