Mesa (master): anv/gen8_pipeline: Add an assert to ensure use_alt_mode is not set in prog_data

Anuj Phogat aphogat at kemper.freedesktop.org
Tue Oct 4 20:28:03 UTC 2016


Module: Mesa
Branch: master
Commit: 2abb7486f5fca85c3cd6e8b078c47be850e4d02a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2abb7486f5fca85c3cd6e8b078c47be850e4d02a

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Mon Sep 26 11:08:33 2016 -0700

anv/gen8_pipeline: Add an assert to ensure use_alt_mode is not set in prog_data

Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>

---

 src/intel/vulkan/gen8_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c
index 1abb97c..0fe9e70 100644
--- a/src/intel/vulkan/gen8_pipeline.c
+++ b/src/intel/vulkan/gen8_pipeline.c
@@ -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;




More information about the mesa-commit mailing list