summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader_info.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-09-03 18:05:25 +0200
committerSamuel Pitoiset <[email protected]>2019-09-06 15:52:17 +0200
commit84b346eda9c7f2de3256c7fc20a90958cd0b59ca (patch)
tree767f3d96632962fdcea9e5daa3e8d11490c3fb59 /src/amd/vulkan/radv_shader_info.c
parentd21489d415150b93b0ba07aea06dc21ac40fbe9a (diff)
radv: gather viewport in the shader info pass
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader_info.c')
-rw-r--r--src/amd/vulkan/radv_shader_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c
index 43c70e74fad..614a20d5921 100644
--- a/src/amd/vulkan/radv_shader_info.c
+++ b/src/amd/vulkan/radv_shader_info.c
@@ -571,6 +571,9 @@ gather_info_output_decl(const nir_shader *nir, const nir_variable *var,
case VARYING_SLOT_PSIZ:
vs_info->writes_pointsize = true;
break;
+ case VARYING_SLOT_VIEWPORT:
+ vs_info->writes_viewport_index = true;
+ break;
default:
break;
}