Mesa (main): anv: add missing logic op set in pipeline dyn state

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 3 17:54:49 UTC 2022


Module: Mesa
Branch: main
Commit: 69e6417e19793043e4bb3cd500cfcf377bce4c03
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69e6417e19793043e4bb3cd500cfcf377bce4c03

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Fri Apr 29 23:08:42 2022 +0300

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 at intel.com>
Fixes: 75ad0e4b0874 ("anv: support blending logic op dynamic state")
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220>

---

 src/intel/vulkan/anv_pipeline.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 1c37a572a44..d8f3f818608 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -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);



More information about the mesa-commit mailing list