radv: handle exporting view index to fragment shader. (v1.1)
authorDave Airlie <airlied@redhat.com>
Fri, 16 Mar 2018 05:57:11 +0000 (05:57 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Mar 2018 01:20:00 +0000 (01:20 +0000)
commit8f052a3e257a61240cb311032497d016278117a8
tree2060eebd52c1f1764a2b751b9188790c408cd217
parentdbc24835d75466951a44b391b42e39461a6ac5a2
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 <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_info.c