Commit 232c0f64 authored by Plamena Manolova's avatar Plamena Manolova
Browse files

isl: Set ClearColorConversionEnable.



The ClearColorConversionEnable bit needs to be set
for GEN11 when inderect clear colors are used.
Signed-off-by: Plamena Manolova's avatarPlamena Manolova <plamena.n.manolova@gmail.com>
Reviewed-by: Rafael Antognolli's avatarRafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Nanley Chery's avatarNanley Chery <nanley.g.chery@intel.com>
parent 15875861
......@@ -618,6 +618,27 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
unreachable("Gen9 and earlier do not support indirect clear colors");
#endif
}
#if GEN_GEN == 11
/*
* From BXML > GT > Shared Functions > vol5c Shared Functions >
* [Structure] RENDER_SURFACE_STATE [BDW+] > ClearColorConversionEnable:
*
* Project: Gen11
*
* "Enables Pixel backend hw to convert clear values into native format
* and write back to clear address, so that display and sampler can use
* the converted value for resolving fast cleared RTs."
*
* Summary:
* Clear color conversion must be enabled if the clear color is stored
* indirectly and fast color clears are enabled.
*/
if (info->use_clear_address) {
s.ClearColorConversionEnable = true;
}
#endif
#if GEN_GEN >= 9
if (!info->use_clear_address) {
s.RedClearColor = info->clear_color.u32[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment