anv/cmd_buffer: Pack the 3DSTATE_VF packet on-demand

This commit is contained in:
Jason Ekstrand
2015-11-16 16:29:33 -08:00
parent 34d55d69cf
commit 0508046dc8
4 changed files with 12 additions and 16 deletions

View File

@@ -83,12 +83,6 @@ emit_ia_state(struct anv_pipeline *pipeline,
const VkPipelineInputAssemblyStateCreateInfo *info,
const struct anv_graphics_pipeline_create_info *extra)
{
struct GEN8_3DSTATE_VF vf = {
GEN8_3DSTATE_VF_header,
.IndexedDrawCutIndexEnable = pipeline->primitive_restart
};
GEN8_3DSTATE_VF_pack(NULL, pipeline->gen8.vf, &vf);
anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_VF_TOPOLOGY,
.PrimitiveTopologyType = pipeline->topology);
}