mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 17:30:29 +01:00
gen8/pipeline: Minor blending fixes
This makes various fields match upstream mesa
This commit is contained in:
parent
fa8db0dfcc
commit
e69db9159b
1 changed files with 4 additions and 2 deletions
|
|
@ -198,6 +198,7 @@ emit_cb_state(struct anv_pipeline *pipeline,
|
|||
|
||||
struct GEN8_BLEND_STATE blend_state = {
|
||||
.AlphaToCoverageEnable = info->alphaToCoverageEnable,
|
||||
.AlphaToOneEnable = info->alphaToOneEnable,
|
||||
};
|
||||
|
||||
for (uint32_t i = 0; i < info->attachmentCount; i++) {
|
||||
|
|
@ -208,8 +209,9 @@ emit_cb_state(struct anv_pipeline *pipeline,
|
|||
.LogicOpFunction = vk_to_gen_logic_op[info->logicOp],
|
||||
.ColorBufferBlendEnable = a->blendEnable,
|
||||
.PreBlendSourceOnlyClampEnable = false,
|
||||
.PreBlendColorClampEnable = false,
|
||||
.PostBlendColorClampEnable = false,
|
||||
.ColorClampRange = COLORCLAMP_RTFORMAT,
|
||||
.PreBlendColorClampEnable = true,
|
||||
.PostBlendColorClampEnable = true,
|
||||
.SourceBlendFactor = vk_to_gen_blend[a->srcBlendColor],
|
||||
.DestinationBlendFactor = vk_to_gen_blend[a->destBlendColor],
|
||||
.ColorBlendFunction = vk_to_gen_blend_op[a->blendOpColor],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue