anv: allocate fake render pass on pipeline creation

v3: (Lionel)
- Handle VkPipelineRenderingCreateInfoKHR not being present
- Rename dynamic_pass and set it for regular render passes too

v4: C99 is good (Lionel)

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13980>
This commit is contained in:
Iván Briano
2021-11-04 12:29:09 -07:00
parent 73ed019bec
commit 5d9aaea31f
3 changed files with 40 additions and 7 deletions

View File

@@ -3474,6 +3474,7 @@ struct anv_graphics_pipeline {
uint32_t rasterization_samples;
struct anv_subpass * subpass;
struct anv_render_pass * pass;
struct anv_shader_bin * shaders[ANV_GRAPHICS_SHADER_STAGE_COUNT];
@@ -3528,6 +3529,8 @@ struct anv_graphics_pipeline {
struct {
uint32_t wm_depth_stencil[4];
} gfx9;
struct anv_dynamic_render_pass dynamic_render_pass;
};
struct anv_compute_pipeline {