summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-01-10 12:46:25 +0000
committerLionel Landwerlin <[email protected]>2017-01-10 18:14:36 +0000
commit4b44ca72250745228f5eeb0fd3e0fddf51e99963 (patch)
tree9cf0f2e7f98a7d6a81aff5bf1dfe51bffd66b08d /src/intel/vulkan/genX_pipeline.c
parent59fe3796a8f3d89feae5b4ec9439f63cc9bb2662 (diff)
anv: add helper to get vue map for fragment shader
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 90968b490f7..20ba5b63ae0 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -285,8 +285,6 @@ emit_urb_setup(struct anv_pipeline *pipeline)
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_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;
@@ -298,10 +296,7 @@ emit_3dstate_sbe(struct anv_pipeline *pipeline)
return;
}
- if (gs_prog_data)
- fs_input_map = &gs_prog_data->base.vue_map;
- else
- fs_input_map = &vs_prog_data->base.vue_map;
+ fs_input_map = anv_pipeline_get_fs_input_map(pipeline);
struct GENX(3DSTATE_SBE) sbe = {
GENX(3DSTATE_SBE_header),