The Vulkan spec (20 Oct 2015, git-
aa308cb) requires that
VkGraphicsPipelineCreateInfo::renderPass be a valid handle. To satisfy
that, define a static dummy render pass used for all meta operations.
#include "anv_private.h"
#include "anv_nir_builder.h"
+struct anv_render_pass anv_meta_dummy_renderpass = {0};
+
static nir_shader *
build_nir_vertex_shader(bool attr_flat)
{
},
},
.flags = 0,
+ .renderPass = anv_render_pass_to_handle(&anv_meta_dummy_renderpass),
+ .subpass = 0,
},
&(struct anv_graphics_pipeline_create_info) {
.use_repclear = true,
},
.flags = 0,
.layout = device->meta_state.blit.pipeline_layout,
+ .renderPass = anv_render_pass_to_handle(&anv_meta_dummy_renderpass),
+ .subpass = 0,
};
const struct anv_graphics_pipeline_create_info anv_pipeline_info = {
struct anv_subpass subpasses[0];
};
+extern struct anv_render_pass anv_meta_dummy_renderpass;
+
struct anv_query_pool_slot {
uint64_t begin;
uint64_t end;