radv: call vk_graphics_pipeline_state_fill() when initializing gfx pipelines

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18015>
This commit is contained in:
Samuel Pitoiset
2022-08-09 14:55:28 +02:00
parent 5076bed2fb
commit 31e6693fa3

View File

@@ -6924,6 +6924,13 @@ radv_graphics_pipeline_init(struct radv_graphics_pipeline *pipeline, struct radv
pipeline->active_stages |= sinfo->stage;
}
struct vk_graphics_pipeline_all_state all;
struct vk_graphics_pipeline_state state = {0};
result = vk_graphics_pipeline_state_fill(&device->vk, &state, pCreateInfo, NULL, &all, NULL, 0,
NULL);
if (result != VK_SUCCESS)
return result;
struct radv_graphics_pipeline_info info = radv_pipeline_init_graphics_info(pipeline, pCreateInfo);
struct radv_blend_state blend = radv_pipeline_init_blend_state(pipeline, pCreateInfo, &info);