diff options
author | Dave Airlie <[email protected]> | 2018-03-16 05:57:11 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-03-19 01:20:00 +0000 |
commit | 8f052a3e257a61240cb311032497d016278117a8 (patch) | |
tree | 2060eebd52c1f1764a2b751b9188790c408cd217 /src/amd/vulkan/radv_shader_info.c | |
parent | dbc24835d75466951a44b391b42e39461a6ac5a2 (diff) |
radv: handle exporting view index to fragment shader. (v1.1)
The fragment shader was trying to read this, but nothing
was exporting it from the vertex shader. This handles
it like the prim id export.
Fixes:
dEQP-VK.multiview.secondary_cmd_buffer.*
dEQP-VK.multiview.index.fragment_shader.*
v1.1: updated to use 0x1 (Samuel)
Fixes: e3265c10c89 (radv: Implement multiview draws.)
Reviewed-by: Samuel Pitoiset <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader_info.c')
-rw-r--r-- | src/amd/vulkan/radv_shader_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index ded3281516d..7208bd2f587 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -90,6 +90,8 @@ gather_intrinsic_info(const nir_shader *nir, const nir_intrinsic_instr *instr, break; case nir_intrinsic_load_view_index: info->needs_multiview_view_index = true; + if (nir->info.stage == MESA_SHADER_FRAGMENT) + info->ps.layer_input = true; break; case nir_intrinsic_load_invocation_id: info->uses_invocation_id = true; |