anv: Enable simpleFloatBlendEnable on Xe3+

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32739>
This commit is contained in:
Sagar Ghuge 2023-10-31 12:02:14 -07:00
parent efeeae3926
commit 046b8717af
2 changed files with 8 additions and 0 deletions

View file

@ -1532,6 +1532,7 @@ struct anv_gfx_dynamic_state {
bool ColorBufferBlendEnable; bool ColorBufferBlendEnable;
uint32_t ColorClampRange; uint32_t ColorClampRange;
bool SimpleFloatBlendEnable;
bool PreBlendColorClampEnable; bool PreBlendColorClampEnable;
bool PostBlendColorClampEnable; bool PostBlendColorClampEnable;
uint32_t SourceBlendFactor; uint32_t SourceBlendFactor;

View file

@ -1378,6 +1378,10 @@ update_blend_state(struct anv_gfx_dynamic_state *hw_state,
SET(BLEND_STATE, blend.rts[rt].PreBlendColorClampEnable, true); SET(BLEND_STATE, blend.rts[rt].PreBlendColorClampEnable, true);
SET(BLEND_STATE, blend.rts[rt].PostBlendColorClampEnable, true); SET(BLEND_STATE, blend.rts[rt].PostBlendColorClampEnable, true);
#if GFX_VER >= 30
SET(BLEND_STATE, blend.rts[rt].SimpleFloatBlendEnable, true);
#endif
/* Setup blend equation. */ /* Setup blend equation. */
SET(BLEND_STATE, blend.rts[rt].ColorBlendFunction, SET(BLEND_STATE, blend.rts[rt].ColorBlendFunction,
vk_to_intel_blend_op[ vk_to_intel_blend_op[
@ -2745,6 +2749,9 @@ cmd_buffer_gfx_state_emission(struct anv_cmd_buffer *cmd_buffer)
INIT(blend.rts[i], LogicOpEnable), INIT(blend.rts[i], LogicOpEnable),
INIT(blend.rts[i], ColorBufferBlendEnable), INIT(blend.rts[i], ColorBufferBlendEnable),
INIT(blend.rts[i], ColorClampRange), INIT(blend.rts[i], ColorClampRange),
#if GFX_VER >= 30
INIT(blend.rts[i], SimpleFloatBlendEnable),
#endif
INIT(blend.rts[i], PreBlendColorClampEnable), INIT(blend.rts[i], PreBlendColorClampEnable),
INIT(blend.rts[i], PostBlendColorClampEnable), INIT(blend.rts[i], PostBlendColorClampEnable),
INIT(blend.rts[i], SourceBlendFactor), INIT(blend.rts[i], SourceBlendFactor),