[Mesa-dev] [PATCH v2 11/14] anv: Use the TES output VUE map when it's the last enabled stage.

Kenneth Graunke kenneth at whitecape.org
Tue Jan 10 07:37:45 UTC 2017


Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/intel/vulkan/genX_pipeline.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 5d63a394cc1..3f3eab5fe19 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -286,6 +286,7 @@ static void
 emit_3dstate_sbe(struct anv_pipeline *pipeline)
 {
    const struct brw_vs_prog_data *vs_prog_data = get_vs_prog_data(pipeline);
+   const struct brw_tes_prog_data *tes_prog_data = get_tes_prog_data(pipeline);
    const struct brw_gs_prog_data *gs_prog_data = get_gs_prog_data(pipeline);
    const struct brw_wm_prog_data *wm_prog_data = get_wm_prog_data(pipeline);
    const struct brw_vue_map *fs_input_map;
@@ -300,6 +301,8 @@ emit_3dstate_sbe(struct anv_pipeline *pipeline)
 
    if (gs_prog_data)
       fs_input_map = &gs_prog_data->base.vue_map;
+   else if (tes_prog_data)
+      fs_input_map = &tes_prog_data->base.vue_map;
    else
       fs_input_map = &vs_prog_data->base.vue_map;
 
-- 
2.11.0



More information about the mesa-dev mailing list