summaryrefslogtreecommitdiff
path: root/src/amd/vulkan/radv_shader_info.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2021-09-27 12:00:24 +0200
committerMarge Bot <eric+marge@anholt.net>2021-09-28 12:30:36 +0000
commita35cfa77f643aba52b18d847c1fe9c0240361e10 (patch)
tree6cf0b9df7ba20b7fcacc15317568728bce418314 /src/amd/vulkan/radv_shader_info.c
parent7594d4ae2c5d53c3fa905f88f56b8aedf62f2e22 (diff)
radv: remove unnecessary vs_common_out.export_viewport_index
This was only used when the FS needs the viewport index if it's not exported by the previous stage. Though, this is actually useless because the driver will emit 0 for the PS input in this case. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13061>
Diffstat (limited to 'src/amd/vulkan/radv_shader_info.c')
-rw-r--r--src/amd/vulkan/radv_shader_info.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c
index 7c121a718f7..fb77f59c529 100644
--- a/src/amd/vulkan/radv_shader_info.c
+++ b/src/amd/vulkan/radv_shader_info.c
@@ -637,23 +637,6 @@ radv_nir_shader_info_pass(struct radv_device *device, const struct nir_shader *n
}
}
- /* Make sure to export the ViewportIndex if the fragment shader needs it. */
- if (key->vs_common_out.export_viewport_index) {
- switch (nir->info.stage) {
- case MESA_SHADER_VERTEX:
- info->vs.output_usage_mask[VARYING_SLOT_VIEWPORT] |= 0x1;
- break;
- case MESA_SHADER_TESS_EVAL:
- info->tes.output_usage_mask[VARYING_SLOT_VIEWPORT] |= 0x1;
- break;
- case MESA_SHADER_GEOMETRY:
- info->gs.output_usage_mask[VARYING_SLOT_VIEWPORT] |= 0x1;
- break;
- default:
- break;
- }
- }
-
/* Make sure to export the clip/cull distances if the fragment shader needs it. */
if (key->vs_common_out.export_clip_dists) {
switch (nir->info.stage) {