anv: add missing logic op set in pipeline dyn state

v2: add ANV_CMD_DIRTY_DYNAMIC_LOGIC_OP check (Tapani)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 75ad0e4b08 ("anv: support blending logic op dynamic state")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220>
This commit is contained in:
Lionel Landwerlin 2022-04-29 23:08:42 +03:00 committed by Marge Bot
parent 5048f15737
commit 69e6417e19
1 changed files with 5 additions and 0 deletions

View File

@ -2351,6 +2351,11 @@ copy_non_dynamic_state(struct anv_graphics_pipeline *pipeline,
}
}
if (states & ANV_CMD_DIRTY_DYNAMIC_LOGIC_OP) {
if (!raster_discard && anv_rendering_uses_color_attachment(rendering_info))
dynamic->logic_op = pCreateInfo->pColorBlendState->logicOp;
}
const VkPipelineFragmentShadingRateStateCreateInfoKHR *fsr_state =
vk_find_struct_const(pCreateInfo->pNext,
PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR);