summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pipeline.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-10-14 13:14:32 +1100
committerTimothy Arceri <[email protected]>2017-10-18 09:19:35 +1100
commit56998558f4dfd7a215bb0d44c4596f260c29f61f (patch)
tree7ea06a8c09695e9203f1235c0464f0c683d671f3 /src/amd/vulkan/radv_pipeline.c
parent4f3e380fa0f192f90e6661ecf5ca1d7e755eed8f (diff)
radv: reorder init function calls
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r--src/amd/vulkan/radv_pipeline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 5e409ce7670..415a6cd62b2 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -1766,6 +1766,8 @@ radv_pipeline_init(struct radv_pipeline *pipeline,
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++) {
@@ -1774,8 +1776,6 @@ radv_pipeline_init(struct radv_pipeline *pipeline,
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);