mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
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:
parent
efeeae3926
commit
046b8717af
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue