anv/gen8_pipeline: Add an assert to ensure use_alt_mode is not set in prog_data
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 26 Sep 2016 18:08:33 +0000 (11:08 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 4 Oct 2016 20:20:34 +0000 (13:20 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/vulkan/gen8_pipeline.c

index 1abb97c..0fe9e70 100644 (file)
@@ -171,6 +171,7 @@ genX(graphics_pipeline_create)(
    }
 
    const struct brw_vs_prog_data *vs_prog_data = get_vs_prog_data(pipeline);
+   assert(!vs_prog_data->base.base.use_alt_mode);
    /* Skip the VUE header and position slots */
    offset = 1;
    length = (vs_prog_data->base.vue_map.num_slots + 1) / 2 - offset;