---
 src/amd/vulkan/radv_pipeline.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 5e409ce767..415a6cd62b 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -1759,30 +1759,30 @@ radv_pipeline_init(struct radv_pipeline *pipeline,
        struct radv_subpass *subpass = pass->subpasses + pCreateInfo->subpass;
        if (subpass->view_mask)
                has_view_index = true;
        if (alloc == NULL)
                alloc = &device->alloc;
 
        pipeline->device = device;
        pipeline->layout = 
radv_pipeline_layout_from_handle(pCreateInfo->layout);
 
        radv_pipeline_init_dynamic_state(pipeline, pCreateInfo);
+       radv_pipeline_init_blend_state(pipeline, pCreateInfo, extra);
+
        const VkPipelineShaderStageCreateInfo *pStages[MESA_SHADER_STAGES] = { 
0, };
        struct radv_shader_module *modules[MESA_SHADER_STAGES] = { 0, };
        for (uint32_t i = 0; i < pCreateInfo->stageCount; i++) {
                gl_shader_stage stage = ffs(pCreateInfo->pStages[i].stage) - 1;
                pStages[stage] = &pCreateInfo->pStages[i];
                modules[stage] = 
radv_shader_module_from_handle(pStages[stage]->module);
        }
 
-       radv_pipeline_init_blend_state(pipeline, pCreateInfo, extra);
-
        if (!modules[MESA_SHADER_FRAGMENT]) {
                nir_builder fs_b;
                nir_builder_init_simple_shader(&fs_b, NULL, 
MESA_SHADER_FRAGMENT, NULL);
                fs_b.shader->info.name = ralloc_strdup(fs_b.shader, "noop_fs");
                fs_m.nir = fs_b.shader;
                modules[MESA_SHADER_FRAGMENT] = &fs_m;
        }
 
        if (modules[MESA_SHADER_FRAGMENT]) {
                struct ac_shader_variant_key key = {0};
-- 
2.13.6

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to