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

Kenneth Graunke kenneth at whitecape.org
Mon Jan 9 05:26:47 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 80b7c75a47c..9a8d2a19b63 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -252,6 +252,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;
@@ -266,6 +267,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