radv: Make FragCoord a sysval
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 13 May 2019 13:39:54 +0000 (15:39 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 8 Jul 2019 12:14:53 +0000 (14:14 +0200)
commit27f0c3c15ef753bf5eb089c725341790e9693c53
tree7832183b3cf5d2f7e9fb482a67ce8df1d128dafe
parent64f3fc5ea6a0487e553fe1bfedacff3c3697ab54
radv: Make FragCoord a sysval

load_fragcoord is already handled in common code for radeonsi, so we
don't need to do anything to handle it. However, there were some passes
creating NIR with the varying, so we switch them over to the sysval. In
the case of nir_lower_input_attachments which is used by both radv and
anv, we add handling for both until intel switches to using a sysval.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_resolve_fs.c
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_shader.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_input_attachments.c
src/intel/vulkan/anv_pipeline.c