ac/nir: Add shader support for multiviews.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 16 Aug 2017 07:09:56 +0000 (09:09 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 24 Aug 2017 17:20:47 +0000 (19:20 +0200)
commit180c1b924e1ed3a2918fad9c5cbb653524de8233
tree78cd87baa56ed17fcaa11ceb96aed74c301aed18
parent2e86f6b2597df85bc106780763ead0b20b3bc8e4
ac/nir: Add shader support for multiviews.

It uses an user SGPR to pass the view index to the shaders, except
for the fragment shader where we use layer=view (which comes in
handy when we want to do the NV ext that allows us to execute pre-FS
stages once instead of per view).

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/common/ac_shader_info.c
src/amd/common/ac_shader_info.h